[Spice-devel] [common PATCH 6/8 v3] ppc: Fix colors on ppc when using LZ4

Lukas Venhoda lvenhoda at redhat.com
Thu Oct 22 08:02:52 PDT 2015


Fixes color order on PowerPC when using LZ4 image compression.
---
Changes since v2:
 - No changes
Changes since v1:
 - New commit
---
 common/canvas_base.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/canvas_base.c b/common/canvas_base.c
index 57b80f6..4c1bd2c 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -545,15 +545,15 @@ static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
             stride_encoded *= 2;
             break;
         case SPICE_BITMAP_FMT_24BIT:
-            format = PIXMAN_r8g8b8;
+            format = PIXMAN_LE_r8g8b8;
             stride_encoded *= 3;
             break;
         case SPICE_BITMAP_FMT_32BIT:
-            format = PIXMAN_x8r8g8b8;
+            format = PIXMAN_LE_x8r8g8b8;
             stride_encoded *= 4;
             break;
         case SPICE_BITMAP_FMT_RGBA:
-            format = PIXMAN_a8r8g8b8;
+            format = PIXMAN_LE_a8r8g8b8;
             stride_encoded *= 4;
             break;
         default:
--
2.4.3



More information about the Spice-devel mailing list