X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..fc684792c6b050fbfeabbea92e302bc3469d7489:/src/osx/toplevel_osx.cpp?ds=sidebyside diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index 3c1c8ae4d3..ae5df2881b 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -73,10 +73,7 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent, long style, const wxString& name) { - int w = WidthDefault(size.x); - int h = HeightDefault(size.y); - - if ( !wxNonOwnedWindow::Create(parent, id, pos, wxSize(w,h), style, name) ) + if ( !wxNonOwnedWindow::Create(parent, id, pos, size, style, name) ) return false; wxWindow::SetLabel( title ) ; @@ -91,9 +88,9 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent, { if ( !wxNonOwnedWindow::Create(parent, nativeWindow ) ) return false; - + wxTopLevelWindows.Append(this); - + return true; } @@ -127,7 +124,7 @@ bool wxTopLevelWindowMac::IsMaximized() const { if ( m_nowpeer == NULL ) return false; - + return m_nowpeer->IsMaximized(); } @@ -183,7 +180,7 @@ void wxTopLevelWindowMac::ShowWithoutActivating() return; m_nowpeer->ShowWithoutActivating(); - + // TODO: Should we call EVT_SIZE here? }