diff options
author | lecoanet | 2004-03-23 14:53:46 +0000 |
---|---|---|
committer | lecoanet | 2004-03-23 14:53:46 +0000 |
commit | bfcdb3b51ea88028b63f3f2d9577659e4119d20a (patch) | |
tree | 60a2f38988e2719012fbe719cbd19db7d1101f14 /generic/Icon.c | |
parent | c15cc9537d6c0d2bf6d5417bd96930cae4381162 (diff) | |
download | tkzinc-bfcdb3b51ea88028b63f3f2d9577659e4119d20a.zip tkzinc-bfcdb3b51ea88028b63f3f2d9577659e4119d20a.tar.gz tkzinc-bfcdb3b51ea88028b63f3f2d9577659e4119d20a.tar.bz2 tkzinc-bfcdb3b51ea88028b63f3f2d9577659e4119d20a.tar.xz |
Changes related to OpenGL context handling (only one context per display) and patches to avoid using widget structure in image cache */
Diffstat (limited to 'generic/Icon.c')
-rw-r--r-- | generic/Icon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/Icon.c b/generic/Icon.c index 81979a4..10dc1c6 100644 --- a/generic/Icon.c +++ b/generic/Icon.c @@ -368,7 +368,7 @@ Draw(ZnItem item) ZnIntersectBBox(&box, &wi->damaged_area, &inter); box = inter; ZnCurrentClip(wi, &clip_region, NULL, NULL); - pixmap = ZnImagePixmap(icon->image); + pixmap = ZnImagePixmap(icon->image, wi->win); photo_region = ZnImageRegion(icon->image); clip = TkCreateRegion(); /* @@ -440,7 +440,7 @@ Draw(ZnItem item) dest_im->data = ZnMalloc(dest_im->bytes_per_line * dest_im->height); memset(dest_im->data, 0, dest_im->bytes_per_line * dest_im->height); - pixmap = ZnImagePixmap(icon->image); + pixmap = ZnImagePixmap(icon->image, wi->win); photo_region = ZnImageRegion(icon->image); clip = TkCreateRegion(); /* @@ -517,7 +517,7 @@ Draw(ZnItem item) * one and use this last image as a mask to draw in the X * back buffer. */ - pixmap = ZnImagePixmap(icon->image); + pixmap = ZnImagePixmap(icon->image, wi->win); if (ZnTransfoIsTranslation(item->wi->current_transfo)) { ZnCurrentClip(wi, NULL, &clip_box, &simple); if (simple) { |