From: Dana Jansens Date: Fri, 11 Jul 2003 03:19:51 +0000 (+0000) Subject: same default offsets for all endian machines X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6fdf481b2758d189a6503a070d7c648a1cc9c1be;p=chaz%2Fopenbox same default offsets for all endian machines --- 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);