toplevel creation respecting wxDefaultPosition again

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-11-09 20:03:19 +00:00
parent e51b17a1f9
commit 5a486641eb

View File

@@ -948,6 +948,14 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
int x = (int)pos.x;
int y = (int)pos.y;
wxRect display = wxGetClientDisplayRect() ;
if ( x == wxDefaultPosition.x )
x = display.x ;
if ( y == wxDefaultPosition.y )
y = display.y ;
int w = WidthDefault(size.x);
int h = HeightDefault(size.y);