From 6fdf481b2758d189a6503a070d7c648a1cc9c1be Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jul 2003 03:19:51 +0000 Subject: [PATCH] same default offsets for all endian machines --- render/render.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/render/render.h b/render/render.h index 8a1eda12..18ec799c 100644 --- a/render/render.h +++ b/render/render.h @@ -127,19 +127,12 @@ struct _RrAppearance { gint w, h; }; -#if (G_BYTE_ORDER == G_BIG_ENDIAN) -#define RrDefaultAlphaOffset 0 -#define RrDefaultRedOffset 8 -#define RrDefaultGreenOffset 16 -#define RrDefaultBlueOffset 24 -#define RrEndian MSBFirst -#else +/* these are the same on all endian machines because it seems to be dependant + on the endianness of the gfx card, not the cpu. */ #define RrDefaultAlphaOffset 24 #define RrDefaultRedOffset 16 #define RrDefaultGreenOffset 8 #define RrDefaultBlueOffset 0 -#define RrEndian LSBFirst -#endif /* G_BYTE_ORDER == G_BIG_ENDIAN */ RrInstance* RrInstanceNew (Display *display, gint screen); void RrInstanceFree (RrInstance *inst); -- 2.45.2