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/Map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'generic/Map.c') diff --git a/generic/Map.c b/generic/Map.c index 622668d..2db552b 100644 --- a/generic/Map.c +++ b/generic/Map.c @@ -1024,7 +1024,7 @@ Draw(ZnItem item) } else { /* Fill stippled */ values.fill_style = FillStippled; - values.stipple = ZnImagePixmap(map->fill_pattern); + values.stipple = ZnImagePixmap(map->fill_pattern, wi->win); XChangeGC(wi->dpy, wi->gc, GCFillStyle | GCStipple | GCForeground, &values); } @@ -1278,7 +1278,7 @@ Draw(ZnItem item) ZnSizeOfImage(sym, &w ,&h); ox = ((int) points[i].x) - w/2; oy = ((int) points[i].y) - h/2; - values.stipple = ZnImagePixmap(sym); + values.stipple = ZnImagePixmap(sym, wi->win); values.ts_x_origin = ox; values.ts_y_origin = oy; XChangeGC(wi->dpy, wi->gc, @@ -1292,7 +1292,7 @@ Draw(ZnItem item) ZnSizeOfImage(wi->map_distance_symbol, &w, &h); cnt = ZnListSize(map->marks); points = ZnListArray(map->marks); - values.stipple = ZnImagePixmap(wi->map_distance_symbol); + values.stipple = ZnImagePixmap(wi->map_distance_symbol, wi->win); XChangeGC(wi->dpy, wi->gc, GCStipple, &values); for (i = 0; i < cnt; i++) { ox = ((int) points[i].x) - w/2; -- cgit v1.1