From c88b75d24c6fc618d638373dce5e5f0281de1f40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Mon, 13 Jul 2009 04:43:37 -0400 Subject: [PATCH] Make sure we get all 64 bits in bits_image_fetch_solid_64() Previously we would only store the first 32 bits. --- pixman/pixman-bits-image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c index fc0dc84..f4fbde4 100644 --- a/pixman/pixman-bits-image.c +++ b/pixman/pixman-bits-image.c @@ -605,19 +605,19 @@ bits_image_fetch_solid_64 (pixman_image_t * image, int x, int y, int width, uint32_t *b, const uint32_t *unused, uint32_t unused2) { - uint32_t color[2]; - uint32_t *coords = (uint32_t *)color; + uint64_t color; + uint32_t *coords = (uint32_t *)&color; uint64_t *buffer = (uint64_t *)b; uint64_t *end; coords[0] = 0; coords[1] = 0; - image->bits.fetch_pixels_raw_64 (&image->bits, color, 1); + image->bits.fetch_pixels_raw_64 (&image->bits, (uint32_t *)&color, 1); end = buffer + width; while (buffer < end) - *(buffer++) = color[0]; + *(buffer++) = color; } static void -- 2.7.4