[spice-common PATCH 6/7 v2] ppc: Fix colors on ppc when using LZ4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes color order on PowerPC when using LZ4 image compression.
---
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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]