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,6 +886,9 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
|||||||
if ( MacGetTopLevelWindow() == NULL )
|
if ( MacGetTopLevelWindow() == NULL )
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
|
if ( !MacIsReallyShown() )
|
||||||
|
return ;
|
||||||
|
|
||||||
wxPoint client = GetClientAreaOrigin();
|
wxPoint client = GetClientAreaOrigin();
|
||||||
int x1 = -client.x;
|
int x1 = -client.x;
|
||||||
int y1 = -client.y;
|
int y1 = -client.y;
|
||||||
|
@@ -886,6 +886,9 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
|||||||
if ( MacGetTopLevelWindow() == NULL )
|
if ( MacGetTopLevelWindow() == NULL )
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
|
if ( !MacIsReallyShown() )
|
||||||
|
return ;
|
||||||
|
|
||||||
wxPoint client = GetClientAreaOrigin();
|
wxPoint client = GetClientAreaOrigin();
|
||||||
int x1 = -client.x;
|
int x1 = -client.x;
|
||||||
int y1 = -client.y;
|
int y1 = -client.y;
|
||||||
|
Reference in New Issue
Block a user