From 87a016ae00feac3fbaa7e7a518076a3852d49554 Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Wed, 15 Oct 2008 00:02:13 +0200 Subject: [PATCH] exa: restore {x,y}{Src,Dst} to their original values when !done --- exa/exa_render.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } } }