fixing 1736298
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,8 +149,13 @@ int wxRendererMac::DrawHeaderButton( wxWindow *win,
|
|||||||
CGContextTranslateCTM( cgContext, 0, bounds.bottom - bounds.top );
|
CGContextTranslateCTM( cgContext, 0, bounds.bottom - bounds.top );
|
||||||
CGContextScaleCTM( cgContext, 1, -1 );
|
CGContextScaleCTM( cgContext, 1, -1 );
|
||||||
|
|
||||||
HIShapeReplacePathInCGContext( HIShapeCreateWithQDRgn( (RgnHandle) dc.m_macCurrentClipRgn ), cgContext );
|
HIShapeRef shape = HIShapeCreateWithQDRgn( (RgnHandle) dc.m_macCurrentClipRgn );
|
||||||
CGContextClip( cgContext );
|
if ( shape != 0 )
|
||||||
|
{
|
||||||
|
HIShapeReplacePathInCGContext( shape , cgContext );
|
||||||
|
CFRelease( shape );
|
||||||
|
CGContextClip( cgContext );
|
||||||
|
}
|
||||||
HIViewConvertRect( &headerRect, (HIViewRef) win->GetHandle(), (HIViewRef) win->MacGetTopLevelWindow()->GetHandle() );
|
HIViewConvertRect( &headerRect, (HIViewRef) win->GetHandle(), (HIViewRef) win->MacGetTopLevelWindow()->GetHandle() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user