diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp index 5821e580..17fc1861 100644 --- a/dgl/src/WindowPrivateData.cpp +++ b/dgl/src/WindowPrivateData.cpp @@ -176,7 +176,7 @@ Window::PrivateData::PrivateData(Application& a, Window* const s, if (isEmbed) puglSetParentWindow(view, parentWindowHandle); - initPre(width, height, resizable); + initPre(width != 0 ? width : DEFAULT_WIDTH, height != 0 ? height : DEFAULT_HEIGHT, resizable); } Window::PrivateData::~PrivateData()