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