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:
@@ -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 );
|
||||
|
||||
|
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user