Change non-widget GWIN objects to always ensure their initial display is flushed before any other drawing takes place.
parent
410d1e756f
commit
0f0964da99
|
@ -196,6 +196,7 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
gwinSetVisible(pgw, pInit->show);
|
gwinSetVisible(pgw, pInit->show);
|
||||||
|
_gwinFlushRedraws(REDRAW_WAIT);
|
||||||
|
|
||||||
return pgw;
|
return pgw;
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,6 +353,7 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gwinSetVisible((GHandle)gc, pInit->show);
|
gwinSetVisible((GHandle)gc, pInit->show);
|
||||||
|
_gwinFlushRedraws(REDRAW_WAIT);
|
||||||
|
|
||||||
return (GHandle)gc;
|
return (GHandle)gc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,6 +172,7 @@ GHandle gwinGGraphCreate(GDisplay *g, GGraphObject *gg, const GWindowInit *pInit
|
||||||
gg->lastx = gg->lasty = 0;
|
gg->lastx = gg->lasty = 0;
|
||||||
gwinGraphSetStyle((GHandle)gg, &GGraphDefaultStyle);
|
gwinGraphSetStyle((GHandle)gg, &GGraphDefaultStyle);
|
||||||
gwinSetVisible((GHandle)gg, pInit->show);
|
gwinSetVisible((GHandle)gg, pInit->show);
|
||||||
|
_gwinFlushRedraws(REDRAW_WAIT);
|
||||||
return (GHandle)gg;
|
return (GHandle)gg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue