GWIN creation and destruction bug fixes
This commit is contained in:
parent
c475d69a9c
commit
6d2c8f0f50
2 changed files with 5 additions and 2 deletions
src/gwin
|
@ -170,7 +170,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* @notapi
|
* @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__)
|
#if GWIN_NEED_WIDGET || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -114,7 +114,7 @@ void _gwinDeinit(void)
|
||||||
|
|
||||||
// Internal routine for use by GWIN components only
|
// Internal routine for use by GWIN components only
|
||||||
// Initialise a window creating it dynamically if required.
|
// 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
|
// Allocate the structure if necessary
|
||||||
if (!pgw) {
|
if (!pgw) {
|
||||||
if (!(pgw = gfxAlloc(vmt->size)))
|
if (!(pgw = gfxAlloc(vmt->size)))
|
||||||
|
@ -197,6 +197,9 @@ GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pI
|
||||||
}
|
}
|
||||||
|
|
||||||
void gwinDestroy(GHandle gh) {
|
void gwinDestroy(GHandle gh) {
|
||||||
|
if (!gh)
|
||||||
|
return;
|
||||||
|
|
||||||
// Make the window invisible
|
// Make the window invisible
|
||||||
gwinSetVisible(gh, FALSE);
|
gwinSetVisible(gh, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue