Browse Source

Reorder initialisation to ensure gwin is initialised last

remotes/origin_old/ugfx_release_2.6
inmarket 8 years ago
parent
commit
8b1666e72f
  1. 12
      src/gfx.c

12
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

Loading…
Cancel
Save