exa: restore {x,y}{Src,Dst} to their original values when !done

This commit is contained in:
Maarten Maathuis 2008-10-15 00:02:13 +02:00
parent b677bff97b
commit 87a016ae00

View File

@ -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;
}
}
}