diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-12-17 00:27:01 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-12-17 00:27:01 +0100 |
commit | 69c2c7ef9121fb1883ceb02c6b9f60a446587a65 (patch) | |
tree | 757d5108dd943dc605c10842c9a173da61dae1fd | |
parent | d47cf26d31d9ca5c8308b02d498f3296af606d32 (diff) | |
download | uGFX-69c2c7ef9121fb1883ceb02c6b9f60a446587a65.tar.gz uGFX-69c2c7ef9121fb1883ceb02c6b9f60a446587a65.tar.bz2 uGFX-69c2c7ef9121fb1883ceb02c6b9f60a446587a65.zip |
dirty dirty dirty very very dirty reset_viewport for mouse calibration fix
-rw-r--r-- | drivers/gdisp/SSD1289/gdisp_lld_config.h | 1 | ||||
-rw-r--r-- | src/ginput/mouse.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h index dafbc90f..1863ce04 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h @@ -36,6 +36,7 @@ /*===========================================================================*/
#define GDISP_DRIVER_NAME "SSD1289"
+#define IS_THIS_SSD1289 134038 /* very dirty fix until reset_viewport works */
#define GDISP_LLD(x) gdisp_lld_##x##_SSD1289
#define GDISP_HARDWARE_CLEARS TRUE
diff --git a/src/ginput/mouse.c b/src/ginput/mouse.c index 01689283..a6ebd98e 100644 --- a/src/ginput/mouse.c +++ b/src/ginput/mouse.c @@ -527,9 +527,11 @@ bool_t ginputCalibrateMouse(uint16_t instance) { MouseConfig.fnsavecal(instance, (const uint8_t *)&MouseConfig.caldata, sizeof(MouseConfig.caldata));
MouseConfig.flags |= FLG_CAL_SAVED;
}
-
+
/* FIX THIS PROPERLY!!! */
+ #if IS_THIS_SSD1289 == 134038
reset_viewport();
+ #endif
return TRUE;
#endif
|