diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-02-02 16:15:08 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-02-02 16:15:08 +0100 |
commit | d646a43b6eb9e0cfb8abd37cf56344b8f65619a5 (patch) | |
tree | ec55410a26682458a1684e71ad31c6c9c3a98063 /src/gwin | |
parent | e178b08549bd0bf3e2a8d235518a60ea05681962 (diff) | |
download | uGFX-d646a43b6eb9e0cfb8abd37cf56344b8f65619a5.tar.gz uGFX-d646a43b6eb9e0cfb8abd37cf56344b8f65619a5.tar.bz2 uGFX-d646a43b6eb9e0cfb8abd37cf56344b8f65619a5.zip |
fix
Diffstat (limited to 'src/gwin')
-rw-r--r-- | src/gwin/gwin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index a9d9d823..7eb09f73 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -127,6 +127,12 @@ GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit _gwm_redim(pgw, pInit->x, pInit->y, pInit->width, pInit->height); #endif + #if GWIN_NEED_HIERARCHY + pgw->parent = NULL; + pgw->sibling = NULL; + pgw->child = NULL; + #endif + return (GHandle)pgw; } @@ -168,12 +174,6 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI if (!(pgw = _gwindowCreate(g, pgw, pInit, &basegwinVMT, 0))) return 0; - #if GWIN_NEED_HIERARCHY - pgw->parent = NULL; - pgw->sibling = NULL; - pgw->child = NULL; - #endif - gwinSetVisible(pgw, pInit->show); return pgw; |