aboutsummaryrefslogtreecommitdiff
path: root/generic/Icon.c
diff options
context:
space:
mode:
authorlecoanet2004-02-23 09:15:24 +0000
committerlecoanet2004-02-23 09:15:24 +0000
commit8b11edd43da0482b2d427c8789a03aacb0f5b3fa (patch)
tree0b5945affdab146cce79841fee9e0b7b8be5dae2 /generic/Icon.c
parent8bcdf9f4d1d7aa7e9d4c625eb92603094fbd446c (diff)
downloadtkzinc-8b11edd43da0482b2d427c8789a03aacb0f5b3fa.zip
tkzinc-8b11edd43da0482b2d427c8789a03aacb0f5b3fa.tar.gz
tkzinc-8b11edd43da0482b2d427c8789a03aacb0f5b3fa.tar.bz2
tkzinc-8b11edd43da0482b2d427c8789a03aacb0f5b3fa.tar.xz
Fix a bug on the clipped mask when redrawing a rotated Icon (X11 only).
Diffstat (limited to 'generic/Icon.c')
-rw-r--r--generic/Icon.c2
1 files changed, 1 insertions, 1 deletions
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, &current_clip, &current_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,