From: YAMAMOTO Mitsuharu Date: Sat, 30 Aug 2008 08:38:14 +0000 (+0000) Subject: [USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change. X-Git-Tag: emacs-pretest-22.2.92~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c7f3f68187a31d355666cd3757e7715f75c18f3;p=emacs.git [USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change. [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise. --- diff --git a/src/macterm.c b/src/macterm.c index a9964ae28ab..940dac3f7b3 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -1023,9 +1023,9 @@ mac_draw_image_string_atsui (f, gc, x, y, buf, nchars, bg_width, 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 @@ mac_draw_image_string_cg (f, gc, x, y, buf, nchars, bg_width, overstrike_p) 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);