diff src/macterm.c @ 80781:5e49fbefd047

[USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change. [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sat, 30 Aug 2008 08:38:14 +0000
parents 3e9e1107a4aa
children 74541c8c7ba2
line wrap: on
line diff
--- 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);