diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /src/nsfont.m | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'src/nsfont.m')
| -rw-r--r-- | src/nsfont.m | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nsfont.m b/src/nsfont.m index 115986774d8..b3898758869 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -37,6 +37,7 @@ Author: Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 37 | #include "frame.h" | 37 | #include "frame.h" |
| 38 | #include "character.h" | 38 | #include "character.h" |
| 39 | #include "font.h" | 39 | #include "font.h" |
| 40 | #include "termchar.h" | ||
| 40 | 41 | ||
| 41 | /* TODO: Drop once we can assume gnustep-gui 0.17.1. */ | 42 | /* TODO: Drop once we can assume gnustep-gui 0.17.1. */ |
| 42 | #ifdef NS_IMPL_GNUSTEP | 43 | #ifdef NS_IMPL_GNUSTEP |
| @@ -1040,8 +1041,7 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1040 | face = s->face; | 1041 | face = s->face; |
| 1041 | break; | 1042 | break; |
| 1042 | case NS_DUMPGLYPH_MOUSEFACE: | 1043 | case NS_DUMPGLYPH_MOUSEFACE: |
| 1043 | face = FACE_FROM_ID (s->f, | 1044 | face = FACE_FROM_ID (s->f, MOUSE_HL_INFO (s->f)->mouse_face_face_id); |
| 1044 | FRAME_NS_DISPLAY_INFO (s->f)->mouse_face_face_id); | ||
| 1045 | if (!face) | 1045 | if (!face) |
| 1046 | face = FACE_FROM_ID (s->f, MOUSE_FACE_ID); | 1046 | face = FACE_FROM_ID (s->f, MOUSE_FACE_ID); |
| 1047 | break; | 1047 | break; |
| @@ -1211,7 +1211,6 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1211 | DPSstroke (context); | 1211 | DPSstroke (context); |
| 1212 | 1212 | ||
| 1213 | DPSgrestore (context); | 1213 | DPSgrestore (context); |
| 1214 | return to-from; | ||
| 1215 | } | 1214 | } |
| 1216 | 1215 | ||
| 1217 | #else /* NS_IMPL_COCOA */ | 1216 | #else /* NS_IMPL_COCOA */ |
| @@ -1280,10 +1279,9 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1280 | } | 1279 | } |
| 1281 | 1280 | ||
| 1282 | CGContextRestoreGState (gcontext); | 1281 | CGContextRestoreGState (gcontext); |
| 1283 | return; | ||
| 1284 | } | 1282 | } |
| 1285 | #endif /* NS_IMPL_COCOA */ | 1283 | #endif /* NS_IMPL_COCOA */ |
| 1286 | 1284 | return to-from; | |
| 1287 | } | 1285 | } |
| 1288 | 1286 | ||
| 1289 | 1287 | ||