Fixed refresh bug on early versions of MacOS X by
refreshing whole window on (de)activation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -581,6 +581,12 @@ void wxTopLevelWindowMac::MacActivate( WXEVENTREF ev , bool inIsActivating )
|
|||||||
|
|
||||||
UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ;
|
UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ;
|
||||||
|
|
||||||
|
// Early versions of MacOS X don't refresh backgrounds properly,
|
||||||
|
// so refresh the whole window on activation and deactivation.
|
||||||
|
long osVersion = UMAGetSystemVersion();
|
||||||
|
if (osVersion >= 0x1000 && osVersion < 0x1020)
|
||||||
|
Refresh(TRUE);
|
||||||
|
else
|
||||||
MacSuperEnabled( inIsActivating ) ;
|
MacSuperEnabled( inIsActivating ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -581,6 +581,12 @@ void wxTopLevelWindowMac::MacActivate( WXEVENTREF ev , bool inIsActivating )
|
|||||||
|
|
||||||
UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ;
|
UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ;
|
||||||
|
|
||||||
|
// Early versions of MacOS X don't refresh backgrounds properly,
|
||||||
|
// so refresh the whole window on activation and deactivation.
|
||||||
|
long osVersion = UMAGetSystemVersion();
|
||||||
|
if (osVersion >= 0x1000 && osVersion < 0x1020)
|
||||||
|
Refresh(TRUE);
|
||||||
|
else
|
||||||
MacSuperEnabled( inIsActivating ) ;
|
MacSuperEnabled( inIsActivating ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user