Mercurial > emacs
changeset 92187:b7277e09e943
(w32font_draw): Pay attention to s->padding_p.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 25 Feb 2008 01:46:30 +0000 |
parents | 919240e47747 |
children | 579a729e2f9f |
files | src/w32font.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32font.c Mon Feb 25 01:45:47 2008 +0000 +++ b/src/w32font.c Mon Feb 25 01:46:30 2008 +0000 @@ -487,7 +487,16 @@ 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)