Browse Source

Fix initial size under some systems

pull/506/head
falkTX 5 months ago
parent
commit
61b1daded0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      dgl/src/WindowPrivateData.cpp

+ 2
- 2
dgl/src/WindowPrivateData.cpp View File

@@ -306,8 +306,8 @@ void Window::PrivateData::initPre(const uint width, const uint height, const boo
// PUGL_SAMPLES ??
puglSetEventFunc(view, puglEventCallback);

// setting default size triggers system-level calls, do it last
puglSetSizeHint(view, PUGL_DEFAULT_SIZE, static_cast<PuglSpan>(width), static_cast<PuglSpan>(height));
// setting size triggers system-level calls, do it last
puglSetSizeAndDefault(view, width, height);
}

bool Window::PrivateData::initPost()


Loading…
Cancel
Save