From 8b11edd43da0482b2d427c8789a03aacb0f5b3fa Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 23 Feb 2004 09:15:24 +0000 Subject: Fix a bug on the clipped mask when redrawing a rotated Icon (X11 only). --- generic/Icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generic/Icon.c') diff --git a/generic/Icon.c b/generic/Icon.c index 4526ea2..16ec3f0 100644 --- a/generic/Icon.c +++ b/generic/Icon.c @@ -483,7 +483,7 @@ Draw(ZnItem item) ZnCurrentClip(wi, ¤t_clip, ¤t_clip_box, NULL); TkSetRegion(wi->dpy, mask_gc, current_clip); XSetClipOrigin(wi->dpy, mask_gc, - -current_clip_box->orig.x, -current_clip_box->orig.y); + -item->item_bounding_box.orig.x, -item->item_bounding_box.orig.y); XPutImage(wi->dpy, mask, mask_gc, dest_mask, 0, 0, 0, 0, dest_im_width, dest_im_height); XPutImage(wi->dpy, drw, gc, dest_im, -- cgit v1.1