summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLukas Venhoda <lvenhoda@redhat.com>2015-12-17 15:45:07 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-12-17 16:03:22 +0100
commit1118712c5989f7eeb723e830bd6b7371796b8ba6 (patch)
tree2fa4a4d1f6d937296eb3558d12cccf9dccefbbf9 /common
parent2493c60ff70e79b5df91c281dda0e0d19d4408cb (diff)
downloadspice-common-1118712c5989f7eeb723e830bd6b7371796b8ba6.tar.gz
spice-common-1118712c5989f7eeb723e830bd6b7371796b8ba6.tar.xz
spice-common-1118712c5989f7eeb723e830bd6b7371796b8ba6.zip
ppc: Fix alpha state checking on BE machines
The surface before conversion can be either LE or BE on a BE machine. Check against both BE and LE color order on BE machine.
Diffstat (limited to 'common')
-rw-r--r--common/canvas_base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index c30e35d..d918441 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -1264,6 +1264,9 @@ static pixman_image_t *canvas_get_image_internal(CanvasBase *canvas, SpiceImage
If so we convert here. */
wanted_format = canvas_get_target_format(canvas,
+#ifdef WORDS_BIGENDIAN
+ surface_format == PIXMAN_b8g8r8a8 ||
+#endif
surface_format == PIXMAN_a8r8g8b8);
if (surface_format != wanted_format) {