]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle wide characters properly.
authorJason Rumney <jasonr@gnu.org>
Thu, 17 Jun 1999 08:45:30 +0000 (08:45 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 17 Jun 1999 08:45:30 +0000 (08:45 +0000)
src/w32term.c

index 1d094708e3fe803a75bd7c26cf0913161ac57deb..9723b5b2a27280cb3f6fd45a4ed80963f9e7920b 100644 (file)
@@ -1681,6 +1681,14 @@ dumprectangle (f, left, top, cols, rows)
       if (! active_frame->enable[y] || left > active_frame->used[y])
        continue;
 
+      while (*line & GLYPH_MASK_PADDING)
+       {
+         /* We must display the whole glyph of a wide-column
+            character.  */
+         left--;
+         line--;
+         cols++;
+       }
       dumpglyphs (f,
                  CHAR_TO_PIXEL_COL (f, left),
                  CHAR_TO_PIXEL_ROW (f, y),