diff options
| author | YAMAMOTO Mitsuharu | 2008-08-30 08:38:14 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2008-08-30 08:38:14 +0000 |
| commit | 4c7f3f68187a31d355666cd3757e7715f75c18f3 (patch) | |
| tree | c8dd5867a550fec90681177fcf00e078ebd03dab /src | |
| parent | b16c969bca8bbc4c504f9d55a0cd8f639fb6ca9b (diff) | |
| download | emacs-4c7f3f68187a31d355666cd3757e7715f75c18f3.tar.gz emacs-4c7f3f68187a31d355666cd3757e7715f75c18f3.zip | |
[USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change.
[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
| 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, |
| @@ -1410,9 +1410,9 @@ mac_draw_image_string_cg (f, gc, x, y, buf, nchars, bg_width, overstrike_p) | |||
| 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); |