aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)