From bfcdb3b51ea88028b63f3f2d9577659e4119d20a Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 23 Mar 2004 14:53:46 +0000 Subject: Changes related to OpenGL context handling (only one context per display) and patches to avoid using widget structure in image cache */ --- generic/Icon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'generic/Icon.c') 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) { -- cgit v1.1