diff --git a/src/wxmac/src/mac/wx_dccan1.cc b/src/wxmac/src/mac/wx_dccan1.cc index ce118dcfc5..1d32edd95d 100644 --- a/src/wxmac/src/mac/wx_dccan1.cc +++ b/src/wxmac/src/mac/wx_dccan1.cc @@ -972,7 +972,7 @@ CGContextRef wxCanvasDC::GetCG() if (onpaint_reg) { ::CopyRgn(onpaint_reg, clipRgn); if (clip_reg) - ::SectRgn(current_reg, clip_reg, current_reg); + ::SectRgn(clipRgn, clip_reg, clipRgn); } else { ::CopyRgn(clip_reg, clipRgn); } diff --git a/src/wxmac/src/mac/wx_dccan3.cc b/src/wxmac/src/mac/wx_dccan3.cc index 9f88d4d9e3..5caeba64b9 100644 --- a/src/wxmac/src/mac/wx_dccan3.cc +++ b/src/wxmac/src/mac/wx_dccan3.cc @@ -315,14 +315,6 @@ void wxCanvasDC::DrawText(const char* text, double x, double y, Bool combine, Bo qdp = cMacDC->macGrafPort(); SyncCGContextOriginWithPort(cg, qdp); GetPortBounds(qdp, &portRect); - { - RgnHandle clipRgn; - clipRgn = GetCurrentClipRgn(qdp); - if (clipRgn) { - ClipCGContextToRegion(cg, &portRect, clipRgn); - DisposeRgn(clipRgn); - } - } CGContextTranslateCTM(cg, gdx + (x * user_scale_x) + device_origin_x, (portRect.bottom - portRect.top)