diff options
| author | Geoff Voelker | 1999-03-14 05:27:21 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1999-03-14 05:27:21 +0000 |
| commit | 5eee6366e8d92ecc75af39d6ee8d70d4eae80e85 (patch) | |
| tree | 324cfeac6402bbb391be801c31ee7d59f4bad48f /src/w32term.c | |
| parent | b1f918f8da446a89d3b94011589480baf99e7a84 (diff) | |
| download | emacs-5eee6366e8d92ecc75af39d6ee8d70d4eae80e85.tar.gz emacs-5eee6366e8d92ecc75af39d6ee8d70d4eae80e85.zip | |
(W32_TEXTOUT): Do not multiply nchars by
charset_dim.
(dumpglyphs): Formatting fixes.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c index 326dedbd3e0..a6f9425f421 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -549,7 +549,7 @@ w32_use_unicode_for_codepage (codepage) | |||
| 549 | w32_BDF_TextOut (font->bdf, hdc, left + xoffset, \ | 549 | w32_BDF_TextOut (font->bdf, hdc, left + xoffset, \ |
| 550 | top + yoffset, \ | 550 | top + yoffset, \ |
| 551 | x_1byte_buffer + start_offset, \ | 551 | x_1byte_buffer + start_offset, \ |
| 552 | charset_dim, charset_dim * nchars, 0); \ | 552 | charset_dim, nchars, 0); \ |
| 553 | else if (print_via_unicode) \ | 553 | else if (print_via_unicode) \ |
| 554 | ExtTextOutW (hdc, left + xoffset, top + yoffset, \ | 554 | ExtTextOutW (hdc, left + xoffset, top + yoffset, \ |
| 555 | fuOptions, clip_region, \ | 555 | fuOptions, clip_region, \ |
| @@ -771,7 +771,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 771 | codepage = w32_codepage_for_font (fontp->name); | 771 | codepage = w32_codepage_for_font (fontp->name); |
| 772 | 772 | ||
| 773 | if ( font && !font->bdf ) | 773 | if ( font && !font->bdf ) |
| 774 | print_via_unicode = w32_use_unicode_for_codepage (codepage); | 774 | print_via_unicode = w32_use_unicode_for_codepage (codepage); |
| 775 | 775 | ||
| 776 | baseline = FONT_BASE (font) + fontp->baseline_offset; | 776 | baseline = FONT_BASE (font) + fontp->baseline_offset; |
| 777 | 777 | ||
| @@ -972,7 +972,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 972 | SetBkColor (hdc, bg); | 972 | SetBkColor (hdc, bg); |
| 973 | SetTextAlign (hdc, TA_BASELINE | TA_LEFT); | 973 | SetTextAlign (hdc, TA_BASELINE | TA_LEFT); |
| 974 | 974 | ||
| 975 | if ( print_via_unicode ) | 975 | if (print_via_unicode) |
| 976 | n_chars = MultiByteToWideChar | 976 | n_chars = MultiByteToWideChar |
| 977 | (codepage, 0, x_1byte_buffer, n_chars, | 977 | (codepage, 0, x_1byte_buffer, n_chars, |
| 978 | x_2byte_buffer, FRAME_WINDOW_WIDTH (f)); | 978 | x_2byte_buffer, FRAME_WINDOW_WIDTH (f)); |