[USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix last change.
[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise.
This commit is contained in:
parent
b16c969bca
commit
4c7f3f6818
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue