git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42671
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxSize wxTopLevelWindowBase::GetMaxSize() const
{
wxSize wxTopLevelWindowBase::GetMaxSize() const
{
- wxSize size( GetMaxWidth(), GetMaxHeight() );
- int w, h;
+ wxSize size = wxWindow::GetMaxSize();
- wxClientDisplayRect( 0, 0, &w, &h );
+ int w, h;
+ wxClientDisplayRect(NULL, NULL, &w, &h );
- if( size.GetWidth() == wxDefaultCoord )
- size.SetWidth( w );
+ if ( size.GetWidth() == wxDefaultCoord )
+ size.SetWidth(w);
- if( size.GetHeight() == wxDefaultCoord )
- size.SetHeight( h );
+ if ( size.GetHeight() == wxDefaultCoord )
+ size.SetHeight(h);