summaryrefslogtreecommitdiff
path: root/miext/cw/cw_ops.c
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2004-08-18 21:11:17 +0000
committerKevin E Martin <kem@kem.org>2004-08-18 21:11:17 +0000
commit87842285007e9ac4f9de0349abee1fb66b7c795f (patch)
tree78110f530c134d84f2cf9fc7891f7cda2d492491 /miext/cw/cw_ops.c
parent9223baf985778c536ce93846c431b46a0192cf32 (diff)
Fix CopyArea for non-redir dst, redir src (Bug #1105, Eric Anholt).
Diffstat (limited to 'miext/cw/cw_ops.c')
-rw-r--r--miext/cw/cw_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miext/cw/cw_ops.c b/miext/cw/cw_ops.c
index 85816ddd6..198337cf8 100644
--- a/miext/cw/cw_ops.c
+++ b/miext/cw/cw_ops.c
@@ -26,10 +26,10 @@
#define SETUP_BACKING_DST(_pDst, _pGC) \
cwGCPtr pGCPrivate = getCwGC (_pGC); \
- GCPtr pBackingGC = pGCPrivate->pBackingGC; \
int dst_off_x, dst_off_y; \
DrawablePtr pBackingDst = cwGetBackingDrawable(pDst, &dst_off_x, \
- &dst_off_y)
+ &dst_off_y); \
+ GCPtr pBackingGC = pGCPrivate->pBackingGC ? pGCPrivate->pBackingGC : _pGC
#define SETUP_BACKING_SRC(pSrc, pGC) \
int src_off_x, src_off_y; \