Browse Source

GWIN Console Clear Fix

When a GWIN Console is cleared, set the cursor back to the top left
corner.
remotes/origin_old/ugfx_release_2.6
Andrew Hannam 10 years ago
parent
commit
e741d6045b
  1. 7
      src/gwin.c

7
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
}
/**

Loading…
Cancel
Save