mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-09 22:18:03 +00:00
ppc: Fix colors on ppc when using jpeg
Fixes color order on PowerPC when using jpeg compression.
This commit is contained in:
parent
98f9097c49
commit
2493c60ff7
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user