TLWs can use the WidthDefault and HeightDefault methods too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-10 01:17:22 +00:00
parent 3a12cb0a94
commit 1111cedc6a
2 changed files with 4 additions and 16 deletions

View File

@@ -327,14 +327,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
// always create a frame of some reasonable, even if arbitrary, size (at
// least for MSW compatibility)
wxSize size = sizeOrig;
if ( size.x == -1 || size.y == -1 )
{
wxSize sizeDpy = wxGetDisplaySize();
if ( size.x == -1 )
size.x = sizeDpy.x / 3;
if ( size.y == -1 )
size.y = sizeDpy.y / 5;
}
size.x = WidthDefault(size.x);
size.y = WidthDefault(size.y);
wxTopLevelWindows.Append( this );

View File

@@ -327,14 +327,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
// always create a frame of some reasonable, even if arbitrary, size (at
// least for MSW compatibility)
wxSize size = sizeOrig;
if ( size.x == -1 || size.y == -1 )
{
wxSize sizeDpy = wxGetDisplaySize();
if ( size.x == -1 )
size.x = sizeDpy.x / 3;
if ( size.y == -1 )
size.y = sizeDpy.y / 5;
}
size.x = WidthDefault(size.x);
size.y = WidthDefault(size.y);
wxTopLevelWindows.Append( this );