[gtk-vnc] cairo: Fix framebuffer setup on big-endian
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] cairo: Fix framebuffer setup on big-endian
- Date: Tue, 4 Dec 2012 11:05:08 +0000 (UTC)
commit 4b3a6e84bd1a1bc85feafbd6ce64c3af4b29c903
Author: Adam Jackson <ajax redhat com>
Date: Mon Dec 3 13:37:38 2012 -0500
cairo: Fix framebuffer setup on big-endian
Without this, big-endian machines would over-swizzle.
Signed-off-by: Adam Jackson <ajax redhat com>
src/vnccairoframebuffer.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]