correct repair to Mac OS X clipping region for smoothed drawing

svn: r9837
This commit is contained in:
Matthew Flatt 2008-05-14 21:00:41 +00:00
parent 03e5466059
commit ead4b65935
2 changed files with 1 additions and 9 deletions

View File

@ -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);
}

View File

@ -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)