From: Alp Aker Date: Wed, 2 Oct 2013 03:26:29 +0000 (-0400) Subject: * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1416 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45435f08570d581a4126febe4fb8589d8e3ea959;p=emacs.git * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect (Bug#15500). --- diff --git a/src/ChangeLog b/src/ChangeLog index 2bedb2997ac..2274071a902 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-10-01 Alp Aker + + * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect + (Bug#15500). + 2013-09-29 Eli Zaretskii * xdisp.c (get_next_display_element): Don't call face_for_font in diff --git a/src/macfont.m b/src/macfont.m index ab5029743ef..cb913991e06 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -2708,7 +2708,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, { CG_SET_FILL_COLOR_WITH_GC_BACKGROUND (context, s); CGContextFillRect (context, - NSMakeRect (x, y, + CGRectMake (x, y, s->width, FONT_HEIGHT (s->font))); }