aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfx.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-09-26 16:28:26 +1000
committerinmarket <andrewh@inmarket.com.au>2014-09-26 16:35:16 +1000
commitff28a0aa37fb0400e0cd7e504f6af7cdcd01aa48 (patch)
treea70641a0ae00bf6cb9a4b69cda9e9f39da345d28 /src/gfx.c
parent9db9255bad8090e15e51922402c807bb1bbe082a (diff)
downloaduGFX-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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gfx.c b/src/gfx.c
index 0803f59a..dfb438e2 100644
--- a/src/gfx.c
+++ b/src/gfx.c
@@ -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