]> git.eshelyaron.com Git - emacs.git/commitdiff
(W32_TEXTOUT): Do not multiply nchars by
authorGeoff Voelker <voelker@cs.washington.edu>
Sun, 14 Mar 1999 05:27:21 +0000 (05:27 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Sun, 14 Mar 1999 05:27:21 +0000 (05:27 +0000)
charset_dim.
(dumpglyphs): Formatting fixes.

src/w32term.c

index 326dedbd3e0297f4846828e0dbe35ba18eac618f..a6f9425f421a9098d803924003b9df6f589a7c1b 100644 (file)
@@ -549,7 +549,7 @@ w32_use_unicode_for_codepage (codepage)
     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 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp)
             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 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp)
        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));