diff options
| author | Jan Djärv | 2013-10-02 20:52:34 +0200 |
|---|---|---|
| committer | Jan Djärv | 2013-10-02 20:52:34 +0200 |
| commit | c348360a2bdf390fff9883c4c922804a67c9cc9e (patch) | |
| tree | ab42abee1bbb577ce4fa69a2908c3112b52e403a /src | |
| parent | 1a23cd48f50ce6accd6f9c22649a4b4d50611dd1 (diff) | |
| download | emacs-c348360a2bdf390fff9883c4c922804a67c9cc9e.tar.gz emacs-c348360a2bdf390fff9883c4c922804a67c9cc9e.zip | |
* macfont.m (macfont_draw): Use s->ybase for correct y position.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/macfont.m | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1bdda53f335..6af5b2ee086 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-10-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * macfont.m (mac_ctfont_create_preferred_family_for_attributes): Remove | ||
| 4 | unised variable (from mac-port). | ||
| 5 | (macfont_draw): Use s->ybase for correct y position. | ||
| 6 | |||
| 1 | 2013-10-02 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2013-10-02 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 8 | ||
| 3 | * frame.h (struct frame): Drop has_minibuffer member because... | 9 | * frame.h (struct frame): Drop has_minibuffer member because... |
diff --git a/src/macfont.m b/src/macfont.m index cb913991e06..206a810c239 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -2720,7 +2720,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 2720 | CGFloat font_size = mac_font_get_size (macfont); | 2720 | CGFloat font_size = mac_font_get_size (macfont); |
| 2721 | CGAffineTransform atfm; | 2721 | CGAffineTransform atfm; |
| 2722 | CGFloat advance_delta = 0; | 2722 | CGFloat advance_delta = 0; |
| 2723 | int y_draw = -y-FONT_BASE (s->font); | 2723 | int y_draw = -s->ybase; |
| 2724 | int no_antialias_p = | 2724 | int no_antialias_p = |
| 2725 | (macfont_info->antialias == MACFONT_ANTIALIAS_OFF | 2725 | (macfont_info->antialias == MACFONT_ANTIALIAS_OFF |
| 2726 | || (macfont_info->antialias == MACFONT_ANTIALIAS_DEFAULT | 2726 | || (macfont_info->antialias == MACFONT_ANTIALIAS_DEFAULT |
| @@ -3321,10 +3321,8 @@ mac_ctfont_create_preferred_family_for_attributes (CFDictionaryRef attributes) | |||
| 3321 | CFStringRef result = NULL; | 3321 | CFStringRef result = NULL; |
| 3322 | CFStringRef charset_string = | 3322 | CFStringRef charset_string = |
| 3323 | CFDictionaryGetValue (attributes, MAC_FONT_CHARACTER_SET_STRING_ATTRIBUTE); | 3323 | CFDictionaryGetValue (attributes, MAC_FONT_CHARACTER_SET_STRING_ATTRIBUTE); |
| 3324 | CFIndex length; | ||
| 3325 | 3324 | ||
| 3326 | if (charset_string | 3325 | if (charset_string && CFStringGetLength (charset_string) > 0) |
| 3327 | && (length = CFStringGetLength (charset_string)) > 0) | ||
| 3328 | { | 3326 | { |
| 3329 | CFAttributedStringRef attr_string = NULL; | 3327 | CFAttributedStringRef attr_string = NULL; |
| 3330 | CTLineRef ctline = NULL; | 3328 | CTLineRef ctline = NULL; |