diff options
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/w32term.c b/src/w32term.c index 72e32b37f0b..2256155f131 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1105,21 +1105,24 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 1105 | 1105 | ||
| 1106 | /* Draw the first character at the normal position. */ | 1106 | /* Draw the first character at the normal position. */ |
| 1107 | if (print_via_unicode) | 1107 | if (print_via_unicode) |
| 1108 | ExtTextOutW (hdc, left + x_offset, top /*+ baseline*/, | 1108 | ExtTextOutW (hdc, left + x_offset, |
| 1109 | top /*+ baseline*/, | ||
| 1109 | fuOptions, clip_region, | 1110 | fuOptions, clip_region, |
| 1110 | x_2byte_buffer, 1, NULL); | 1111 | x_2byte_buffer, 1, NULL); |
| 1111 | else if (CHARSET_DIMENSION (charset) > 1) | 1112 | else if (CHARSET_DIMENSION (charset) > 1) |
| 1112 | { | 1113 | { |
| 1113 | /* Keep character together */ | 1114 | /* Keep character together */ |
| 1114 | int n = CHARSET_DIMENSION (charset) ; | 1115 | int n = CHARSET_DIMENSION (charset) ; |
| 1115 | ExtTextOut (hdc, left + x_offset, top /*+ baseline*/, | 1116 | ExtTextOut (hdc, left + x_offset, |
| 1117 | top /*+ baseline*/, | ||
| 1116 | fuOptions, clip_region, | 1118 | fuOptions, clip_region, |
| 1117 | x_1byte_buffer, n, NULL); | 1119 | x_1byte_buffer, n, NULL); |
| 1118 | /* fiddle i. */ | 1120 | /* fiddle i. */ |
| 1119 | i += n - 1; | 1121 | i += n - 1; |
| 1120 | } | 1122 | } |
| 1121 | else | 1123 | else |
| 1122 | ExtTextOut (hdc, left + x_offset, top /*+ baseline*/, | 1124 | ExtTextOut (hdc, left + x_offset, |
| 1125 | top /*+ baseline*/, | ||
| 1123 | fuOptions, clip_region, | 1126 | fuOptions, clip_region, |
| 1124 | x_1byte_buffer, 1, NULL); | 1127 | x_1byte_buffer, 1, NULL); |
| 1125 | gidx++; | 1128 | gidx++; |
| @@ -1256,7 +1259,8 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 1256 | 1259 | ||
| 1257 | if (face->underline) | 1260 | if (face->underline) |
| 1258 | w32_fill_area (f, hdc, fg, left, | 1261 | w32_fill_area (f, hdc, fg, left, |
| 1259 | top + FONT_BASE (font) + underline_position, | 1262 | top + FONT_BASE (FRAME_FONT (f)) |
| 1263 | + underline_position, | ||
| 1260 | run_width, 1); | 1264 | run_width, 1); |
| 1261 | } | 1265 | } |
| 1262 | 1266 | ||
| @@ -5164,6 +5168,7 @@ When nil, CapsLock only affects normal character input keys."); | |||
| 5164 | When nil, the right-alt and left-ctrl key combination is\n\ | 5168 | When nil, the right-alt and left-ctrl key combination is\n\ |
| 5165 | interpreted normally."); | 5169 | interpreted normally."); |
| 5166 | Vw32_recognize_altgr = Qt; | 5170 | Vw32_recognize_altgr = Qt; |
| 5171 | |||
| 5167 | DEFVAR_BOOL ("w32-no-unicode-output", | 5172 | DEFVAR_BOOL ("w32-no-unicode-output", |
| 5168 | &w32_no_unicode_output, | 5173 | &w32_no_unicode_output, |
| 5169 | "Disable the use of Unicode for text output if non-nil.\n\ | 5174 | "Disable the use of Unicode for text output if non-nil.\n\ |