trying to avoid unneccessary redraws by not invalidating areas for windows that are not shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -886,7 +886,10 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
||||
if ( MacGetTopLevelWindow() == NULL )
|
||||
return ;
|
||||
|
||||
wxPoint client = GetClientAreaOrigin();
|
||||
if ( !MacIsReallyShown() )
|
||||
return ;
|
||||
|
||||
wxPoint client = GetClientAreaOrigin();
|
||||
int x1 = -client.x;
|
||||
int y1 = -client.y;
|
||||
int x2 = m_width - client.x;
|
||||
|
@@ -886,7 +886,10 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
||||
if ( MacGetTopLevelWindow() == NULL )
|
||||
return ;
|
||||
|
||||
wxPoint client = GetClientAreaOrigin();
|
||||
if ( !MacIsReallyShown() )
|
||||
return ;
|
||||
|
||||
wxPoint client = GetClientAreaOrigin();
|
||||
int x1 = -client.x;
|
||||
int y1 = -client.y;
|
||||
int x2 = m_width - client.x;
|
||||
|
Reference in New Issue
Block a user