[Spice-devel] [spice-gtk PATCH] ppc: Fix colors on ppc when using GLZ

Lukas Venhoda lvenhoda at redhat.com
Thu Jul 2 07:02:39 PDT 2015


Fixes color order on PowerPC when using GLZ image compression.
---
 src/decode-glz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
--
2.4.3



More information about the Spice-devel mailing list