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:
Stefan Csomor
2003-07-04 19:59:34 +00:00
parent 7434de7498
commit c3a05e8a57
2 changed files with 8 additions and 2 deletions

View File

@@ -886,6 +886,9 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
if ( MacGetTopLevelWindow() == NULL )
return ;
if ( !MacIsReallyShown() )
return ;
wxPoint client = GetClientAreaOrigin();
int x1 = -client.x;
int y1 = -client.y;

View File

@@ -886,6 +886,9 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
if ( MacGetTopLevelWindow() == NULL )
return ;
if ( !MacIsReallyShown() )
return ;
wxPoint client = GetClientAreaOrigin();
int x1 = -client.x;
int y1 = -client.y;