diff options
author | Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com> | 2007-04-20 13:59:11 -0400 |
---|---|---|
committer | Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com> | 2007-04-21 17:10:54 -0400 |
commit | 38f718799c68995c2d9a1680355bd55fd925009e (patch) | |
tree | 83152cedc9f8f93008381f1b282aafc3c99139e8 /fb/fbcompose.c | |
parent | 9c4b14d4f6a1fe018acd64789434216cd1560a4a (diff) |
Remove a few memory references in fbFetchTransformed
Diffstat (limited to 'fb/fbcompose.c')
-rw-r--r-- | fb/fbcompose.c | 4 |
1 files 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; } |