diff options
Diffstat (limited to 'src/gwin.c')
-rw-r--r-- | src/gwin.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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
}
/**
|