# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1220085494 0 # Node ID 5e49fbefd04738c5dc0c1d4704e07d05e1650143 # Parent 282b9a1d7ef74f3df4499da5169d3b5659665f55 [USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change. [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise. diff -r 282b9a1d7ef7 -r 5e49fbefd047 src/macterm.c --- a/src/macterm.c Sat Aug 30 08:08:11 2008 +0000 +++ b/src/macterm.c Sat Aug 30 08:38:14 2008 +0000 @@ -1023,9 +1023,9 @@ GetPort (&port); QDBeginCGContext (port, &context); + CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); if (gc->n_clip_rects || bg_width) { - CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); CGContextScaleCTM (context, 1, -1); if (gc->n_clip_rects) CGContextClipToRects (context, gc->clip_rects, @@ -1410,9 +1410,9 @@ context = mac_begin_cg_clip (f, gc); #else QDBeginCGContext (GetWindowPort (FRAME_MAC_WINDOW (f)), &context); + CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); if (gc->n_clip_rects || bg_width) { - CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); CGContextScaleCTM (context, 1, -1); if (gc->n_clip_rects) CGContextClipToRects (context, gc->clip_rects, gc->n_clip_rects);