Browse Source

Misc fix

gh-pages
falkTX 10 years ago
parent
commit
54d7cfef14
1 changed files with 16 additions and 8 deletions
  1. +16
    -8
      dgl/src/Window.cpp

+ 16
- 8
dgl/src/Window.cpp View File

@@ -119,11 +119,11 @@ public:
PrivateData(App& app, Window* const self, const intptr_t parentId)
: fApp(app),
fSelf(self),
fView(puglCreate(parentId, "Window", 100, 100, true, true)),
fView(puglCreate(parentId, "Window", 100, 100, (parentId == 0), (parentId != 0))),
fFirstInit(true),
fVisible(true),
fResizable(false),
fUsingEmbed(true),
fVisible(parentId != 0),
fResizable(parentId == 0),
fUsingEmbed(parentId != 0),
#if DGL_OS_WINDOWS
hwnd(0)
#elif DGL_OS_LINUX
@@ -133,12 +133,20 @@ public:
_dummy('\0')
#endif
{
DBG("Creating embedded window..."); DBGF;
if (parentId != 0) {
DBG("Creating embedded window..."); DBGF;
} else {
DBG("Creating window without parent..."); DBGF;
}

init();

DBG("NOTE: Embed window is always visible and non-resizable\n");
fApp._oneShown();
fFirstInit = false;
if (parentId != 0)
{
DBG("NOTE: Embed window is always visible and non-resizable\n");
fApp._oneShown();
fFirstInit = false;
}
}

void init()


Loading…
Cancel
Save