summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Venhoda <lvenhoda@redhat.com>2015-12-17 16:50:18 +0100
committerPavel Grunt <pgrunt@redhat.com>2015-12-21 18:23:51 +0100
commit756f756c8aae1814fd8f36e08df44b85ffb63574 (patch)
tree83ba8e0c33e5dd4553d81cc32a7aa48e2da10ee0
parent4395cb797db92a4c03a1a0bdc5a23bf3ae9873c9 (diff)
ppc: Fix colors on ppc when using GLZ
Fixes color order on PowerPC when using GLZ image compression. Acked-by: Pavel Grunt <pgrunt@redhat.com>
-rw-r--r--src/decode-glz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decode-glz.c b/src/decode-glz.c
index 34a7185..a5fb6c1 100644
--- a/src/decode-glz.c
+++ b/src/decode-glz.c
@@ -55,7 +55,7 @@ static struct glz_image *glz_image_new(struct glz_image_hdr *hdr,
img = g_new0(struct glz_image, 1);
img->hdr = *hdr;
img->surface = alloc_lz_image_surface
- (opaque, type == LZ_IMAGE_TYPE_RGBA ? PIXMAN_a8r8g8b8 : PIXMAN_x8r8g8b8,
+ (opaque, type == LZ_IMAGE_TYPE_RGBA ? PIXMAN_LE_a8r8g8b8 : PIXMAN_LE_x8r8g8b8,
img->hdr.width, img->hdr.height, img->hdr.gross_pixels, img->hdr.top_down);
pixman_image_ref(img->surface);
img->data = (uint8_t *)pixman_image_get_data(img->surface);