Fix to ensure correct clearing of consoles when being redrawn.
This commit is contained in:
parent
ccf05de456
commit
68a0be8110
@ -168,10 +168,17 @@
|
|||||||
// Print the buffer
|
// Print the buffer
|
||||||
gwinPutCharArray(gh, gcw->buffer, gcw->bufpos);
|
gwinPutCharArray(gh, gcw->buffer, gcw->bufpos);
|
||||||
|
|
||||||
#if !GWIN_CONSOLE_USE_CLEAR_LINES
|
#if GWIN_CONSOLE_USE_CLEAR_LINES
|
||||||
// Clear the remaining space
|
// Clear the remaining space
|
||||||
if (gcw->cy + fy < gh->height)
|
{
|
||||||
gdispGFillArea(gh->display, gh->x, gh->y+gcw->cy+fy, gh->width, gh->height-(gcw->cy+fy), gh->bgcolor);
|
coord_t y;
|
||||||
|
|
||||||
|
y = gcw->cy;
|
||||||
|
if (gcw->cx)
|
||||||
|
y += gdispGetFontMetric(gh->font, fontHeight);
|
||||||
|
if (y < gh->height)
|
||||||
|
gdispGFillArea(gh->display, gh->x, gh->y+y, gh->width, gh->height-y, gh->bgcolor);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Turn back on storing of buffer contents
|
// Turn back on storing of buffer contents
|
||||||
|
Loading…
Reference in New Issue
Block a user