ugfx_release_2.6
Joel Bodenmann 2014-02-02 16:15:08 +01:00
parent e178b08549
commit d646a43b6e
1 changed files with 6 additions and 6 deletions

View File

@ -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;