diff options
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 | ||