SSD1289 calibration clear fix
parent
55d16822aa
commit
f115d43753
|
@ -292,6 +292,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) {
|
|||
void GDISP_LLD(clear)(color_t color) {
|
||||
unsigned i;
|
||||
|
||||
reset_viewport();
|
||||
acquire_bus();
|
||||
set_cursor(0, 0);
|
||||
stream_start();
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
/*===========================================================================*/
|
||||
|
||||
#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
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
#define GINPUT_MOUSE_EVENT_TYPE GEVENT_TOUCH
|
||||
#define GINPUT_MOUSE_NEED_CALIBRATION TRUE
|
||||
#define GINPUT_MOUSE_LLD_CALIBRATION_LOADSAVE FALSE
|
||||
#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 10
|
||||
#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 12
|
||||
#define GINPUT_MOUSE_READ_CYCLES 4
|
||||
#define GINPUT_MOUSE_POLL_PERIOD 100
|
||||
#define GINPUT_MOUSE_MAX_CLICK_JITTER 4
|
||||
#define GINPUT_MOUSE_MAX_MOVE_JITTER 4
|
||||
#define GINPUT_MOUSE_CLICK_TIME 700
|
||||
#define GINPUT_MOUSE_POLL_PERIOD 25
|
||||
#define GINPUT_MOUSE_MAX_CLICK_JITTER 2
|
||||
#define GINPUT_MOUSE_MAX_MOVE_JITTER 2
|
||||
#define GINPUT_MOUSE_CLICK_TIME 500
|
||||
|
||||
#endif /* _LLD_GINPUT_MOUSE_CONFIG_H */
|
||||
/** @} */
|
||||
|
|
|
@ -528,11 +528,6 @@ bool_t ginputCalibrateMouse(uint16_t instance) {
|
|||
MouseConfig.flags |= FLG_CAL_SAVED;
|
||||
}
|
||||
|
||||
/* FIX THIS PROPERLY!!! */
|
||||
#if IS_THIS_SSD1289 == 134038
|
||||
reset_viewport();
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue