[Spice-devel] [spice-common PATCH 7/7 v2] ppc: Fix alpha state checking on BE machines

Lukas Venhoda lvenhoda at redhat.com
Thu Jul 2 07:01:44 PDT 2015


When checking, whether we use alpha channel, we need to compare color
format with constant with the same byte order.
---
Changes since v1:
 - New commit
---
 common/canvas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/canvas_base.c b/common/canvas_base.c
index 4c1bd2c..c089dcc 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -1267,7 +1267,7 @@ static pixman_image_t *canvas_get_image_internal(CanvasBase *canvas, SpiceImage
            If so we convert here. */

         wanted_format = canvas_get_target_format(canvas,
-                                                 surface_format == PIXMAN_a8r8g8b8);
+                                                 surface_format == PIXMAN_LE_a8r8g8b8);

         if (surface_format != wanted_format) {
             converted = surface_create(
--
2.4.3



More information about the Spice-devel mailing list