EXA: fix typo
authorRob Clark <robdclark@gmail.com>
Tue, 14 Jun 2011 16:45:38 +0000 (11:45 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 19 Jun 2011 22:20:30 +0000 (08:20 +1000)
The incorrect drawable deltas were applied if dst was a redirected
window.  Resulting in a bogus region passed to prepare_access_reg().

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
exa/exa_unaccel.c

index 078b91c..df416d5 100644 (file)
@@ -143,7 +143,7 @@ ExaCheckCopyNtoN (DrawablePtr pSrc, DrawablePtr pDst,  GCPtr pGC,
        RegionInitBoxes (&reg, pbox, nbox)) {
        PixmapPtr pPixmap = exaGetDrawablePixmap(pDst);
 
-       exaGetDrawableDeltas(pSrc, pPixmap, &xoff, &yoff);
+       exaGetDrawableDeltas(pDst, pPixmap, &xoff, &yoff);
        RegionTranslate(&reg, xoff, yoff);
        pExaScr->prepare_access_reg(pPixmap, EXA_PREPARE_DEST, &reg);
        RegionUninit(&reg);