diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-02-02 19:56:05 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-02-02 19:56:05 +0100 |
commit | 9774c86d0e8c171f414eecdf6b1b3f9598986b69 (patch) | |
tree | 69ede6a9893ea9f157719ba2d9dfc84d05e4c588 /src/gwin/gwin.c | |
parent | d646a43b6eb9e0cfb8abd37cf56344b8f65619a5 (diff) | |
parent | d2de6c351785f323fd4b2a4e337a95bda4c9a626 (diff) | |
download | uGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.tar.gz uGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.tar.bz2 uGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.zip |
Merge branch 'master' into gwin
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r-- | src/gwin/gwin.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 7eb09f73..5e5ae949 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -84,7 +84,8 @@ static color_t defaultBgColor = Black; * Class Routines *-----------------------------------------------*/ -void _gwinInit(void) { +void _gwinInit(void) +{ #if GWIN_NEED_WIDGET extern void _gwidgetInit(void); @@ -97,6 +98,20 @@ void _gwinInit(void) { #endif } +void _gwinDeinit(void) +{ + #if GWIN_NEED_WIDGET + extern void _gwidgetDeinit(void); + + _gwidgetDeinit(); + #endif + #if GWIN_NEED_WINDOWMANAGER + extern void _gwmDeinit(void); + + _gwmDeinit(); + #endif +} + // Internal routine for use by GWIN components only // Initialise a window creating it dynamically if required. GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags) { |