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:35:16 +1000 |
commit | ff28a0aa37fb0400e0cd7e504f6af7cdcd01aa48 (patch) | |
tree | a70641a0ae00bf6cb9a4b69cda9e9f39da345d28 /src/gfx.c | |
parent | 9db9255bad8090e15e51922402c807bb1bbe082a (diff) | |
download | uGFX-ff28a0aa37fb0400e0cd7e504f6af7cdcd01aa48.tar.gz uGFX-ff28a0aa37fb0400e0cd7e504f6af7cdcd01aa48.tar.bz2 uGFX-ff28a0aa37fb0400e0cd7e504f6af7cdcd01aa48.zip |
Reorder initialisation to ensure gwin is initialised last
Diffstat (limited to 'src/gfx.c')
-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 |