Fixes color order on PowerPC when using jpeg compression. --- Changes since v2: - New commit --- common/canvas_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/canvas_base.c b/common/canvas_base.c index 4c1bd2c..65b1c3f 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) { -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel