summaryrefslogtreecommitdiff
path: root/src/xftfont.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2007-09-13 11:04:11 +0000
committerKenichi Handa <handa@m17n.org>2007-09-13 11:04:11 +0000
commit03d198e8b9675c4120d28e27d7e7d9d349b51a88 (patch)
tree823ac70d52093e464e695ab5f76f815e38caba83 /src/xftfont.c
parent3e786bc045f489907938dab1819c3a5f96193b26 (diff)
downloademacs-03d198e8b9675c4120d28e27d7e7d9d349b51a88.tar.gz
(xftfont_draw): Adjusted for the change of struct
glyph_string.
Diffstat (limited to 'src/xftfont.c')
-rw-r--r--src/xftfont.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/xftfont.c b/src/xftfont.c
index 4c7582ed041..75cc06117c4 100644
--- a/src/xftfont.c
+++ b/src/xftfont.c
@@ -512,12 +512,11 @@ xftfont_draw (s, from, to, x, y, with_background)
FRAME_X_WINDOW (f),
FRAME_X_VISUAL (f),
FRAME_X_COLORMAP (f));
- if (s->clip_width)
- {
- r.x = s->clip_x, r.width = s->clip_width;
- r.y = s->clip_y, r.height = s->clip_height;
- XftDrawSetClipRectangles (xft_draw, 0, 0, &r, 1);
- }
+ if (s->num_clips > 0)
+ XftDrawSetClipRectangles (xft_draw, 0, 0, s->clip, s->num_clips);
+ else
+ XftDrawSetClip (xft_draw, NULL);
+
if (with_background)
{
struct font *font = (struct font *) face->font_info;
@@ -532,8 +531,6 @@ xftfont_draw (s, from, to, x, y, with_background)
XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
x, y, code, len);
- if (s->clip_width)
- XftDrawSetClip (xft_draw, NULL);
if (s->font_info != face->font_info)
XftDrawDestroy (xft_draw);
UNBLOCK_INPUT;