]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32font_draw): Pay attention to s->padding_p.
authorKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 01:46:30 +0000 (01:46 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 01:46:30 +0000 (01:46 +0000)
src/w32font.c

index d0cbe508d4f09d77de91b4d992eff3a79bb295d1..ff0f4d2c8757787e78d05e0567e3d12e8f36eb36 100644 (file)
@@ -487,7 +487,16 @@ w32font_draw (s, from, to, x, y, with_background)
       DeleteObject (brush);
     }
 
-  ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);
+  if (s->padding_p)
+    {
+      int len = to - from, i;
+
+      for (i = 0; i < len; i++)
+       ExtTextOutW (s->hdc, x + i, y, options, NULL,
+                    s->char2b + from + i, len, NULL);
+    }
+  else
+    ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);
 
   /* Restore clip region.  */
   if (s->num_clips > 0)