diff options
| author | Joel Bodenmann <joel@unormal.org> | 2013-07-28 14:13:05 +0200 |
|---|---|---|
| committer | inmarket <andrewh@inmarket.com.au> | 2013-07-29 16:40:05 +1000 |
| commit | 3af74801dd195a267b2c0cba17627e1b40ff1a8c (patch) | |
| tree | c6d92f175a3f2dbae7410eeb65aed5173453cc7a | |
| parent | 319d79f296d222cb5a01144bd8e8907cdb13c0ff (diff) | |
| download | uGFX-3af74801dd195a267b2c0cba17627e1b40ff1a8c.tar.gz uGFX-3af74801dd195a267b2c0cba17627e1b40ff1a8c.tar.bz2 uGFX-3af74801dd195a267b2c0cba17627e1b40ff1a8c.zip | |
clear after mouse calibration to avoid silly display
| -rw-r--r-- | src/ginput/mouse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ginput/mouse.c b/src/ginput/mouse.c index 28707d8b..5459a4cd 100644 --- a/src/ginput/mouse.c +++ b/src/ginput/mouse.c @@ -509,6 +509,13 @@ bool_t ginputCalibrateMouse(uint16_t instance) { MouseConfig.fnsavecal(instance, (const uint8_t *)&MouseConfig.caldata, sizeof(MouseConfig.caldata)); MouseConfig.flags |= FLG_CAL_SAVED; } + + // Clear the screen using the GWIN default background color + #if GFX_USE_GWIN + gdispClear(gwinGetDefaultBgColor()); + #else + gdispClear(White); + #endif return TRUE; #endif |
