Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
80780:282b9a1d7ef7 | 80781:5e49fbefd047 |
---|---|
1021 #else | 1021 #else |
1022 CGrafPtr port; | 1022 CGrafPtr port; |
1023 | 1023 |
1024 GetPort (&port); | 1024 GetPort (&port); |
1025 QDBeginCGContext (port, &context); | 1025 QDBeginCGContext (port, &context); |
1026 CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); | |
1026 if (gc->n_clip_rects || bg_width) | 1027 if (gc->n_clip_rects || bg_width) |
1027 { | 1028 { |
1028 CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); | |
1029 CGContextScaleCTM (context, 1, -1); | 1029 CGContextScaleCTM (context, 1, -1); |
1030 if (gc->n_clip_rects) | 1030 if (gc->n_clip_rects) |
1031 CGContextClipToRects (context, gc->clip_rects, | 1031 CGContextClipToRects (context, gc->clip_rects, |
1032 gc->n_clip_rects); | 1032 gc->n_clip_rects); |
1033 #endif | 1033 #endif |
1408 | 1408 |
1409 #if USE_CG_DRAWING | 1409 #if USE_CG_DRAWING |
1410 context = mac_begin_cg_clip (f, gc); | 1410 context = mac_begin_cg_clip (f, gc); |
1411 #else | 1411 #else |
1412 QDBeginCGContext (GetWindowPort (FRAME_MAC_WINDOW (f)), &context); | 1412 QDBeginCGContext (GetWindowPort (FRAME_MAC_WINDOW (f)), &context); |
1413 CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); | |
1413 if (gc->n_clip_rects || bg_width) | 1414 if (gc->n_clip_rects || bg_width) |
1414 { | 1415 { |
1415 CGContextTranslateCTM (context, 0, FRAME_PIXEL_HEIGHT (f)); | |
1416 CGContextScaleCTM (context, 1, -1); | 1416 CGContextScaleCTM (context, 1, -1); |
1417 if (gc->n_clip_rects) | 1417 if (gc->n_clip_rects) |
1418 CGContextClipToRects (context, gc->clip_rects, gc->n_clip_rects); | 1418 CGContextClipToRects (context, gc->clip_rects, gc->n_clip_rects); |
1419 #endif | 1419 #endif |
1420 if (bg_width) | 1420 if (bg_width) |