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/Field.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/Field.c')
-rw-r--r-- | generic/Field.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/Field.c b/generic/Field.c index dd1d8b2..2f8b9b7 100644 --- a/generic/Field.c +++ b/generic/Field.c @@ -1793,7 +1793,7 @@ DrawField(ZnWInfo *wi, if (fptr->tile != ZnUnspecifiedImage) { if (!ZnImageIsBitmap(fptr->tile)) { /* Fill tiled */ values.fill_style = FillTiled; - values.tile = ZnImagePixmap(fptr->tile); + values.tile = ZnImagePixmap(fptr->tile, wi->win); values.ts_x_origin = (int) bbox->orig.x; values.ts_y_origin = (int) bbox->orig.y; XChangeGC(wi->dpy, wi->gc, @@ -1802,7 +1802,7 @@ DrawField(ZnWInfo *wi, } else { /* Fill stippled */ values.fill_style = FillStippled; - values.stipple = ZnImagePixmap(fptr->tile); + values.stipple = ZnImagePixmap(fptr->tile, wi->win); values.ts_x_origin = (int) bbox->orig.x; values.ts_y_origin = (int) bbox->orig.y; XChangeGC(wi->dpy, wi->gc, @@ -1833,7 +1833,7 @@ DrawField(ZnWInfo *wi, fw = ZnNearestInt(bbox->corner.x - bbox->orig.x); fh = ZnNearestInt(bbox->corner.y - bbox->orig.y); - pixmap = ZnImagePixmap(fptr->image); + pixmap = ZnImagePixmap(fptr->image, wi->win); photo_region = ZnImageRegion(fptr->image); ZnCurrentClip(wi, &clip_region, NULL, &simple); clip = TkCreateRegion(); |