From 38f718799c68995c2d9a1680355bd55fd925009e Mon Sep 17 00:00:00 2001 From: Soren Sandmann Pedersen Date: Fri, 20 Apr 2007 13:59:11 -0400 Subject: [PATCH] Remove a few memory references in fbFetchTransformed --- fb/fbcompose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fb/fbcompose.c b/fb/fbcompose.c index 9b5af8e12..5ddff234e 100644 --- a/fb/fbcompose.c +++ b/fb/fbcompose.c @@ -3351,7 +3351,7 @@ static void fbFetchTransformed(PicturePtr pict, int x, int y, int width, CARD32 y = MOD(v.vector[1]>>16, pict->pDrawable->height); x = MOD(v.vector[0]>>16, pict->pDrawable->width); } - buffer[i] = fetch(bits + (y + pict->pDrawable->y)*stride, x + pict->pDrawable->x, indexed); + buffer[i] = fetch(bits + (y + dy)*stride, x + dx, indexed); } } @@ -3374,7 +3374,7 @@ static void fbFetchTransformed(PicturePtr pict, int x, int y, int width, CARD32 x = MOD(v.vector[0]>>16, pict->pDrawable->width); } if (POINT_IN_REGION (0, pict->pCompositeClip, x, y, &box)) - buffer[i] = fetch(bits + (y + pict->pDrawable->y)*stride, x + pict->pDrawable->x, indexed); + buffer[i] = fetch(bits + (y + dy)*stride, x + dx, indexed); else buffer[i] = 0; }