One more minor wrapping fix
authorArcady Goldmints-Orlov <arcadyg@nvidia.com>
Tue, 14 Aug 2007 00:37:59 +0000 (17:37 -0700)
committerAaron Plattner <aplattner@nvidia.com>
Tue, 14 Aug 2007 23:14:47 +0000 (16:14 -0700)
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
pixman/pixman-compose.c

index bb1c7c0..6a9a2e7 100644 (file)
@@ -1078,7 +1078,7 @@ static FASTCALL uint32_t
 fbFetchPixel_a1 (pixman_image_t *image,
                 const uint32_t *bits, int offset, const pixman_indexed_t * indexed)
 {
-    uint32_t  pixel = ((uint32_t *)bits)[offset >> 5];
+    uint32_t  pixel = READ(bits + (offset >> 5));
     uint32_t  a;
 #if BITMAP_BIT_ORDER == MSBFirst
     a = pixel >> (0x1f - (offset & 0x1f));
@@ -1096,7 +1096,7 @@ static FASTCALL uint32_t
 fbFetchPixel_g1 (pixman_image_t *image,
                 const uint32_t *bits, int offset, const pixman_indexed_t * indexed)
 {
-    uint32_t pixel = ((uint32_t *)bits)[offset >> 5];
+    uint32_t pixel = READ(bits + (offset >> 5));
     uint32_t a;
 #if BITMAP_BIT_ORDER == MSBFirst
     a = pixel >> (0x1f - (offset & 0x1f));