X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f9deab819b4fed528205fcb5479c68ce9092d9..b85b06e13d22e7fc1604ec1a49caa1227a1b3d36:/src/osx/toplevel_osx.cpp?ds=inline

diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp
index 738b5d607d..75380afe01 100644
--- a/src/osx/toplevel_osx.cpp
+++ b/src/osx/toplevel_osx.cpp
@@ -73,7 +73,10 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent,
                                  long style,
                                  const wxString& name)
 {
-    if ( !wxNonOwnedWindow::Create(parent, id, pos, size, style, name) )
+    int w = WidthDefault(size.x);
+    int h = HeightDefault(size.y);
+
+    if ( !wxNonOwnedWindow::Create(parent, id, pos, wxSize(w,h), style, name) )
         return false;
 
     wxWindow::SetLabel( title ) ;