aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-02-25 01:46:30 +0000
committerKenichi Handa2008-02-25 01:46:30 +0000
commitde63f07f8151e740edf0db7bff142cd863820071 (patch)
treedcdf044e2cf4614fe054832740dc77fc967afd39
parentb9c2785e9f5379a45c9838bba49dcd44d7404af3 (diff)
downloademacs-de63f07f8151e740edf0db7bff142cd863820071.tar.gz
emacs-de63f07f8151e740edf0db7bff142cd863820071.zip
(w32font_draw): Pay attention to s->padding_p.
-rw-r--r--src/w32font.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c
index d0cbe508d4f..ff0f4d2c875 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -487,7 +487,16 @@ w32font_draw (s, from, to, x, y, with_background)
487 DeleteObject (brush); 487 DeleteObject (brush);
488 } 488 }
489 489
490 ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL); 490 if (s->padding_p)
491 {
492 int len = to - from, i;
493
494 for (i = 0; i < len; i++)
495 ExtTextOutW (s->hdc, x + i, y, options, NULL,
496 s->char2b + from + i, len, NULL);
497 }
498 else
499 ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, to - from, NULL);
491 500
492 /* Restore clip region. */ 501 /* Restore clip region. */
493 if (s->num_clips > 0) 502 if (s->num_clips > 0)