GWIN creation and destruction bug fixes
This commit is contained in:
parent
c475d69a9c
commit
6d2c8f0f50
@ -170,7 +170,7 @@ extern "C" {
|
||||
*
|
||||
* @notapi
|
||||
*/
|
||||
GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags);
|
||||
GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint32_t flags);
|
||||
|
||||
#if GWIN_NEED_WIDGET || defined(__DOXYGEN__)
|
||||
/**
|
||||
|
@ -114,7 +114,7 @@ void _gwinDeinit(void)
|
||||
|
||||
// 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) {
|
||||
GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint32_t flags) {
|
||||
// Allocate the structure if necessary
|
||||
if (!pgw) {
|
||||
if (!(pgw = gfxAlloc(vmt->size)))
|
||||
@ -197,6 +197,9 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI
|
||||
}
|
||||
|
||||
void gwinDestroy(GHandle gh) {
|
||||
if (!gh)
|
||||
return;
|
||||
|
||||
// Make the window invisible
|
||||
gwinSetVisible(gh, FALSE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user