diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-28 14:13:05 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-28 14:13:05 +0200 |
commit | 580cf977d07820774efd8abcf067f015422b7e55 (patch) | |
tree | 5b2f9ecb9bed43c5f0b36b88bfd0d9f99acea9f9 /src/ginput/mouse.c | |
parent | f84bc2a3f6b82b0f05319fd7c609f8b30929d788 (diff) | |
download | uGFX-580cf977d07820774efd8abcf067f015422b7e55.tar.gz uGFX-580cf977d07820774efd8abcf067f015422b7e55.tar.bz2 uGFX-580cf977d07820774efd8abcf067f015422b7e55.zip |
clear after mouse calibration to avoid silly display
Diffstat (limited to 'src/ginput/mouse.c')
-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 |