summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Venhoda <lvenhoda@redhat.com>2015-11-25 17:14:34 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-12-17 16:03:20 +0100
commit2493c60ff70e79b5df91c281dda0e0d19d4408cb (patch)
tree6b9cc34328afa3879bdfdd43337e431c86e05791
parent98f9097c49f2688e8a5394e3844f75f01291fa19 (diff)
downloadspice-common-2493c60ff70e79b5df91c281dda0e0d19d4408cb.tar.gz
spice-common-2493c60ff70e79b5df91c281dda0e0d19d4408cb.tar.xz
spice-common-2493c60ff70e79b5df91c281dda0e0d19d4408cb.zip
ppc: Fix colors on ppc when using jpeg
Fixes color order on PowerPC when using jpeg compression.
-rw-r--r--common/canvas_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index db4e1a4..c30e35d 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -501,7 +501,7 @@ static pixman_image_t *canvas_get_jpeg(CanvasBase *canvas, SpiceImage *image)
#ifdef WIN32
canvas->dc,
#endif
- PIXMAN_x8r8g8b8,
+ PIXMAN_LE_x8r8g8b8,
width, height, FALSE);
if (surface == NULL) {
spice_warning("create surface failed");
@@ -648,7 +648,7 @@ static pixman_image_t *canvas_get_jpeg_alpha(CanvasBase *canvas, SpiceImage *ima
#ifdef WIN32
lz_data->decode_data.dc = canvas->dc;
#endif
- surface = alloc_lz_image_surface(&lz_data->decode_data, PIXMAN_a8r8g8b8,
+ surface = alloc_lz_image_surface(&lz_data->decode_data, PIXMAN_LE_a8r8g8b8,
width, height, width*height, alpha_top_down);
if (surface == NULL) {