aboutsummaryrefslogtreecommitdiff
path: root/generic/Map.c
diff options
context:
space:
mode:
authorlecoanet2004-03-23 14:53:46 +0000
committerlecoanet2004-03-23 14:53:46 +0000
commitbfcdb3b51ea88028b63f3f2d9577659e4119d20a (patch)
tree60a2f38988e2719012fbe719cbd19db7d1101f14 /generic/Map.c
parentc15cc9537d6c0d2bf6d5417bd96930cae4381162 (diff)
downloadtkzinc-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/Map.c')
-rw-r--r--generic/Map.c6
1 files changed, 3 insertions, 3 deletions
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;