gtk-vnc/gtk-vnc-0.5.1-bigendian.patch

26 lines
868 B
Diff
Raw Normal View History

From 4b3a6e84bd1a1bc85feafbd6ce64c3af4b29c903 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Mon, 03 Dec 2012 18:37:38 +0000
Subject: cairo: Fix framebuffer setup on big-endian
Without this, big-endian machines would over-swizzle.
Signed-off-by: Adam Jackson <ajax@redhat.com>
---
diff --git a/src/vnccairoframebuffer.c b/src/vnccairoframebuffer.c
index ae61ded..75cf7d9 100644
--- a/src/vnccairoframebuffer.c
+++ b/src/vnccairoframebuffer.c
@@ -142,8 +142,7 @@ VncCairoFramebuffer *vnc_cairo_framebuffer_new(guint16 width, guint16 height,
localFormat.blue_shift = 0;
localFormat.depth = 32;
localFormat.bits_per_pixel = 32;
- /* XXX is cairo native endian ? */
- localFormat.byte_order = G_LITTLE_ENDIAN;
+ localFormat.byte_order = G_BYTE_ORDER;
pixels = cairo_image_surface_get_data(surface);
--
cgit v0.9.0.2