Change non-widget GWIN objects to always ensure their initial display is flushed before any other drawing takes place.

ugfx_release_2.6
inmarket 2016-02-13 13:04:30 +10:00
parent 410d1e756f
commit 0f0964da99
3 changed files with 3 additions and 0 deletions

View File

@ -196,6 +196,7 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI
return 0;
gwinSetVisible(pgw, pInit->show);
_gwinFlushRedraws(REDRAW_WAIT);
return pgw;
}

View File

@ -353,6 +353,7 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p
#endif
gwinSetVisible((GHandle)gc, pInit->show);
_gwinFlushRedraws(REDRAW_WAIT);
return (GHandle)gc;
}

View File

@ -172,6 +172,7 @@ GHandle gwinGGraphCreate(GDisplay *g, GGraphObject *gg, const GWindowInit *pInit
gg->lastx = gg->lasty = 0;
gwinGraphSetStyle((GHandle)gg, &GGraphDefaultStyle);
gwinSetVisible((GHandle)gg, pInit->show);
_gwinFlushRedraws(REDRAW_WAIT);
return (GHandle)gg;
}