From 45435f08570d581a4126febe4fb8589d8e3ea959 Mon Sep 17 00:00:00 2001 From: Alp Aker Date: Tue, 1 Oct 2013 23:26:29 -0400 Subject: [PATCH] * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect (Bug#15500). --- src/ChangeLog | 5 +++++ src/macfont.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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))); } -- 2.39.2