From de63f07f8151e740edf0db7bff142cd863820071 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 25 Feb 2008 01:46:30 +0000 Subject: [PATCH] (w32font_draw): Pay attention to s->padding_p. --- src/w32font.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) 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) -- 2.39.2