Mercurial > emacs
changeset 24480:f9d3288b66c3
(W32_TEXTOUT): Do not multiply nchars by
charset_dim.
(dumpglyphs): Formatting fixes.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Sun, 14 Mar 1999 05:27:21 +0000 |
parents | 3b2c3636bf0e |
children | f65692fe7dd5 |
files | src/w32term.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.c Sun Mar 14 05:21:29 1999 +0000 +++ b/src/w32term.c Sun Mar 14 05:27:21 1999 +0000 @@ -549,7 +549,7 @@ w32_BDF_TextOut (font->bdf, hdc, left + xoffset, \ top + yoffset, \ x_1byte_buffer + start_offset, \ - charset_dim, charset_dim * nchars, 0); \ + charset_dim, nchars, 0); \ else if (print_via_unicode) \ ExtTextOutW (hdc, left + xoffset, top + yoffset, \ fuOptions, clip_region, \ @@ -771,7 +771,7 @@ codepage = w32_codepage_for_font (fontp->name); if ( font && !font->bdf ) - print_via_unicode = w32_use_unicode_for_codepage (codepage); + print_via_unicode = w32_use_unicode_for_codepage (codepage); baseline = FONT_BASE (font) + fontp->baseline_offset; @@ -972,7 +972,7 @@ SetBkColor (hdc, bg); SetTextAlign (hdc, TA_BASELINE | TA_LEFT); - if ( print_via_unicode ) + if (print_via_unicode) n_chars = MultiByteToWideChar (codepage, 0, x_1byte_buffer, n_chars, x_2byte_buffer, FRAME_WINDOW_WIDTH (f));