aboutsummaryrefslogtreecommitdiffstats
path: root/src
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:28:26 +1000
commit8b1666e72f327c49b75f1f4f59ba55fa24863b3c (patch)
tree7e60e15ee12ab7b24212aa4ac930d7d520c5dd1d /src
parent8410c8c8b509cfbf7add50b711cf2c425328815f (diff)
downloaduGFX-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.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