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/Rectangle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'generic/Rectangle.c') diff --git a/generic/Rectangle.c b/generic/Rectangle.c index 51fe10d..500473c 100644 --- a/generic/Rectangle.c +++ b/generic/Rectangle.c @@ -504,7 +504,7 @@ Draw(ZnItem item) if (rect->tile != ZnUnspecifiedImage) { if (!ZnImageIsBitmap(rect->tile)) { /* Fill tiled */ values.fill_style = FillTiled; - values.tile = ZnImagePixmap(rect->tile); + values.tile = ZnImagePixmap(rect->tile, wi->win); if (ISSET(rect->flags, ALIGNED_BIT)) { values.ts_x_origin = (int) r.x; values.ts_y_origin = (int) r.y; @@ -518,7 +518,7 @@ Draw(ZnItem item) } else { values.fill_style = FillStippled; - values.stipple = ZnImagePixmap(rect->tile); + values.stipple = ZnImagePixmap(rect->tile, wi->win); if (ISSET(rect->flags, ALIGNED_BIT)) { values.ts_x_origin = (int) r.x; values.ts_y_origin = (int) r.y; @@ -579,7 +579,7 @@ Draw(ZnItem item) } else { values.fill_style = FillStippled; - values.stipple = ZnImagePixmap(rect->line_pattern); + values.stipple = ZnImagePixmap(rect->line_pattern, wi->win); gc_mask |= GCStipple; XChangeGC(wi->dpy, wi->gc, gc_mask, &values); } -- cgit v1.1