Fix typo in fetch_bilinear_pixels()
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Wed, 20 May 2009 11:40:29 +0000 (07:40 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 2 Jun 2009 20:54:08 +0000 (16:54 -0400)
Change the number of temp pixels in FbFetchTransformed() to something a little more reasonable.

pixman/pixman-transformed.c

index 2256424..015e247 100644 (file)
@@ -321,7 +321,7 @@ fetch_bilinear_pixels (bits_image_t *image, uint32_t *buffer, int n_pixels)
 
        u = (uint32_t *)temps;
        d = dists;
-       for (j = 0; i < tmp_n_pixels; ++j)
+       for (j = 0; j < tmp_n_pixels; ++j)
        {
            uint32_t tl, tr, bl, br, r;
            int32_t idistx, idisty;
@@ -702,7 +702,7 @@ void
 ACCESS(fbFetchTransformed)(bits_image_t * pict, int x, int y, int width,
                            uint32_t *buffer, uint32_t *mask, uint32_t maskBits)
 {
-#define N_TMP_PIXELS 8192
+#define N_TMP_PIXELS 1024
 
     uint32_t     *bits;
     int32_t    stride;