diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-08-12 08:11:59 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-08-12 08:11:59 +0000 |
commit | 6e0228722cc2fa37a0e2359bc3dab3646e36c4b7 (patch) | |
tree | d7782eefdbe4e77b09ae874138770c2d91555413 /miext/cw/cw_ops.c | |
parent | 789cf3ed846045d91f950cb177ef6bae4c8966fc (diff) |
Fix various cw issues, including a couple reported by deronj:
- Fix wrapping of GC ops/funcs according to policy described in bug #1045.
- Remove ValidateGC/ValidatePictures on the redirected drawables/pictures
-- it's not needed, and DDXs shouldn't be seeing redirected drawables
in render or GC ops/funcs when cw is running.
- Mark all GC/Picture state as dirty when moving from redirected to
non-redirected, since it hadn't been passed down in Change* or
Validate* while redirected.
- Remove CreatePicture wrapper that didn't do anything.
- Comment on why AddTraps wrapper isn't needed.
Diffstat (limited to 'miext/cw/cw_ops.c')
-rw-r--r-- | miext/cw/cw_ops.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/miext/cw/cw_ops.c b/miext/cw/cw_ops.c index 0b7626917..85816ddd6 100644 --- a/miext/cw/cw_ops.c +++ b/miext/cw/cw_ops.c @@ -26,7 +26,6 @@ #define SETUP_BACKING_DST(_pDst, _pGC) \ cwGCPtr pGCPrivate = getCwGC (_pGC); \ - GCFuncs *oldFuncs = (_pGC)->funcs; \ GCPtr pBackingGC = pGCPrivate->pBackingGC; \ int dst_off_x, dst_off_y; \ DrawablePtr pBackingDst = cwGetBackingDrawable(pDst, &dst_off_x, \ @@ -39,13 +38,11 @@ #define PROLOGUE(pGC) do { \ pGC->ops = pGCPrivate->wrapOps;\ - pGC->funcs = pGCPrivate->wrapFuncs; \ } while (0) #define EPILOGUE(pGC) do { \ pGCPrivate->wrapOps = (pGC)->ops; \ (pGC)->ops = &cwGCOps; \ - (pGC)->funcs = oldFuncs; \ } while (0) /* |