diff options
author | inmarket <andrewh@inmarket.com.au> | 2016-02-13 13:04:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2016-02-13 13:04:30 +1000 |
commit | 0f0964da99e5774504f6f9ee570813075194303d (patch) | |
tree | b7b03e556fa763e975dcd4c98830c7fbdb8bd81a /src | |
parent | 410d1e756f19e57b10933afaf3b1b67abbc575e6 (diff) | |
download | uGFX-0f0964da99e5774504f6f9ee570813075194303d.tar.gz uGFX-0f0964da99e5774504f6f9ee570813075194303d.tar.bz2 uGFX-0f0964da99e5774504f6f9ee570813075194303d.zip |
Change non-widget GWIN objects to always ensure their initial display is flushed before any other drawing takes place.
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/gwin.c | 1 | ||||
-rw-r--r-- | src/gwin/gwin_console.c | 1 | ||||
-rw-r--r-- | src/gwin/gwin_graph.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index f448453b..586636ec 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -196,6 +196,7 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI return 0; gwinSetVisible(pgw, pInit->show); + _gwinFlushRedraws(REDRAW_WAIT); return pgw; } diff --git a/src/gwin/gwin_console.c b/src/gwin/gwin_console.c index 667ec560..37ae079e 100644 --- a/src/gwin/gwin_console.c +++ b/src/gwin/gwin_console.c @@ -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; } diff --git a/src/gwin/gwin_graph.c b/src/gwin/gwin_graph.c index 95743ced..6f0ce2a4 100644 --- a/src/gwin/gwin_graph.c +++ b/src/gwin/gwin_graph.c @@ -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; } |