Change non-widget GWIN objects to always ensure their initial display is flushed before any other drawing takes place.
This commit is contained in:
parent
410d1e756f
commit
0f0964da99
3 changed files with 3 additions and 0 deletions
|
@ -196,6 +196,7 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI
|
|||
return 0;
|
||||
|
||||
gwinSetVisible(pgw, pInit->show);
|
||||
_gwinFlushRedraws(REDRAW_WAIT);
|
||||
|
||||
return pgw;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue