uxa: Skip adjusting mask coordinates when no mask is present.

Quiets clang warnings about garbage variable usage.
This commit is contained in:
Eric Anholt 2010-02-19 11:21:40 -05:00
parent a86869e6c3
commit 6bdab84176
1 changed files with 4 additions and 2 deletions

View File

@ -860,8 +860,10 @@ uxa_try_driver_composite(CARD8 op,
nbox = REGION_NUM_RECTS(&region);
pbox = REGION_RECTS(&region);
xMask = xMask + mask_off_x - xDst - dst_off_x;
yMask = yMask + mask_off_y - yDst - dst_off_y;
if (pMask) {
xMask = xMask + mask_off_x - xDst - dst_off_x;
yMask = yMask + mask_off_y - yDst - dst_off_y;
}
xSrc = xSrc + src_off_x - xDst - dst_off_x;
ySrc = ySrc + src_off_y - yDst - dst_off_y;