X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ec413ce46f5590f2cfcba50f6f1cf1a60392b63..66f75561893ea7b4bf429d1882d9cc0407ba932d:/src/osx/toplevel_osx.cpp diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index f88c60dce2..ae5df2881b 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -6,7 +6,7 @@ // Created: 24.09.01 // RCS-ID: $Id$ // Copyright: (c) 2001-2004 Stefan Csomor -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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? }