(w32font_draw): Draw one character at a time when padding.
authorJason Rumney <jasonr@gnu.org>
Mon, 25 Feb 2008 08:35:40 +0000 (08:35 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 25 Feb 2008 08:35:40 +0000 (08:35 +0000)
src/w32font.c

index ff0f4d2..b781494 100644 (file)
@@ -493,7 +493,7 @@ w32font_draw (s, from, to, x, y, with_background)
 
       for (i = 0; i < len; i++)
        ExtTextOutW (s->hdc, x + i, y, options, NULL,
-                    s->char2b + from + i, len, NULL);
+                    s->char2b + from + i, 1, NULL);
     }
   else
     ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);