cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
02a55765c4
commit
76c7012c6f
@ -201,7 +201,7 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
||||
RgnHandle updateRgn = NULL ;
|
||||
RgnHandle allocatedRgn = NULL ;
|
||||
wxRegion visRegion = thisWindow->MacGetVisibleRegion() ;
|
||||
if ( thisWindow->MacGetTopLevelWindow()->MacUsesCompositing() == false || cEvent.GetParameter<RgnHandle>(kEventParamRgnHandle, &updateRgn) != noErr )
|
||||
if ( cEvent.GetParameter<RgnHandle>(kEventParamRgnHandle, &updateRgn) != noErr )
|
||||
{
|
||||
updateRgn = (RgnHandle) visRegion.GetWXHRGN() ;
|
||||
}
|
||||
@ -2199,9 +2199,11 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
||||
bool isCompositing = MacGetTopLevelWindow()->MacUsesCompositing() ;
|
||||
// if ( isCompositing )
|
||||
{
|
||||
#ifdef __WXMAC_OSX__
|
||||
if ( rect == NULL && isCompositing )
|
||||
m_peer->SetNeedsDisplay( true ) ;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
||||
Rect controlBounds ;
|
||||
|
Loading…
Reference in New Issue
Block a user