GWIN creation and destruction bug fixes

ugfx_release_2.6
inmarket 2014-05-09 21:32:29 +10:00
parent c475d69a9c
commit 6d2c8f0f50
2 changed files with 5 additions and 2 deletions

View File

@ -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__)
/**

View File

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