Use WidthDefault and HeightDefault
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0f21699216
commit
979fdc00c6
@ -657,12 +657,8 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
||||
if ( m_x < 20 )
|
||||
m_x = 20 ;
|
||||
|
||||
m_width = size.x;
|
||||
if (m_width == -1)
|
||||
m_width = 20;
|
||||
m_height = size.y;
|
||||
if (m_height == -1)
|
||||
m_height = 20;
|
||||
m_width = WidthDefault(size.x);
|
||||
m_height = HeightDefault(size.y);
|
||||
|
||||
::SetRect(&theBoundsRect, m_x, m_y , m_x + m_width, m_y + m_height);
|
||||
|
||||
|
@ -657,12 +657,8 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
||||
if ( m_x < 20 )
|
||||
m_x = 20 ;
|
||||
|
||||
m_width = size.x;
|
||||
if (m_width == -1)
|
||||
m_width = 20;
|
||||
m_height = size.y;
|
||||
if (m_height == -1)
|
||||
m_height = 20;
|
||||
m_width = WidthDefault(size.x);
|
||||
m_height = HeightDefault(size.y);
|
||||
|
||||
::SetRect(&theBoundsRect, m_x, m_y , m_x + m_width, m_y + m_height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user