summaryrefslogtreecommitdiff
path: root/exa/exa_render.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-10-15 00:02:13 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-10-15 00:03:16 +0200
commit87a016ae00feac3fbaa7e7a518076a3852d49554 (patch)
treee458e4c1065e61d1061173e381eb7b1348fb5b88 /exa/exa_render.c
parentb677bff97b62c3931df853bae25ab485892ae173 (diff)
exa: restore {x,y}{Src,Dst} to their original values when !done
Diffstat (limited to 'exa/exa_render.c')
-rw-r--r--exa/exa_render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c
index a41b9b964..199af36e2 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -911,6 +911,12 @@ exaComposite(CARD8 op,
if (ret)
goto done;
+
+ /* Let's be correct and restore the variables to their original state. */
+ xDst -= pDst->pDrawable->x;
+ yDst -= pDst->pDrawable->y;
+ xSrc -= pSrc->pDrawable->x;
+ ySrc -= pSrc->pDrawable->y;
}
}
}