diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-09-26 16:28:26 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-09-26 16:28:26 +1000 |
commit | 8b1666e72f327c49b75f1f4f59ba55fa24863b3c (patch) | |
tree | 7e60e15ee12ab7b24212aa4ac930d7d520c5dd1d /src | |
parent | 8410c8c8b509cfbf7add50b711cf2c425328815f (diff) | |
download | uGFX-8b1666e72f327c49b75f1f4f59ba55fa24863b3c.tar.gz uGFX-8b1666e72f327c49b75f1f4f59ba55fa24863b3c.tar.bz2 uGFX-8b1666e72f327c49b75f1f4f59ba55fa24863b3c.zip |
Reorder initialisation to ensure gwin is initialised last
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -89,9 +89,6 @@ void gfxInit(void) #if GFX_USE_GDISP _gdispInit(); #endif - #if GFX_USE_GWIN - _gwinInit(); - #endif #if GFX_USE_GINPUT _ginputInit(); #endif @@ -101,6 +98,9 @@ void gfxInit(void) #if GFX_USE_GAUDIO _gaudioInit(); #endif + #if GFX_USE_GWIN + _gwinInit(); + #endif } void gfxDeinit(void) @@ -110,6 +110,9 @@ void gfxDeinit(void) initDone = FALSE; // We deinitialise the opposite way as we initialised + #if GFX_USE_GWIN + _gwinDeinit(); + #endif #if GFX_USE_GAUDIN _gaudioDeinit(); #endif @@ -119,9 +122,6 @@ void gfxDeinit(void) #if GFX_USE_GINPUT _ginputDeinit(); #endif - #if GFX_USE_GWIN - _gwinDeinit(); - #endif #if GFX_USE_GDISP _gdispDeinit(); #endif |