aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-11-29 06:55:49 -0800
committerTectu <joel@unormal.org>2012-11-29 06:55:49 -0800
commitf2c74cf431880102e12933b2a5c53e6d01a0ce73 (patch)
tree1b178ba8e62f300a9d1e2b0b5c99346e25f339e6 /src/gwin.c
parent5bfa0f26220588359342d4bf14add6dc53b4788b (diff)
parenta123ba7c4e57ff19b557c6402f3d5dc96a0ff2cc (diff)
downloaduGFX-f2c74cf431880102e12933b2a5c53e6d01a0ce73.tar.gz
uGFX-f2c74cf431880102e12933b2a5c53e6d01a0ce73.tar.bz2
uGFX-f2c74cf431880102e12933b2a5c53e6d01a0ce73.zip
Merge pull request #24 from inmarket/master
New GINPUT touch driver test demo + fixes
Diffstat (limited to 'src/gwin.c')
-rw-r--r--src/gwin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gwin.c b/src/gwin.c
index 87288aa9..e7bbda01 100644
--- a/src/gwin.c
+++ b/src/gwin.c
@@ -152,6 +152,13 @@ void gwinClear(GHandle gh) {
gdispSetClip(gh->x, gh->y, gh->width, gh->height);
#endif
gdispFillArea(gh->x, gh->y, gh->width, gh->height, gh->bgcolor);
+
+ #if GWIN_NEED_CONSOLE
+ if (gh->type == GW_CONSOLE) {
+ ((GConsoleObject *)gh)->cx = 0;
+ ((GConsoleObject *)gh)->cy = 0;
+ }
+ #endif
}
/**