same default offsets for all endian machines

This commit is contained in:
Dana Jansens 2003-07-11 03:19:51 +00:00
parent 6f1c3223e0
commit 6fdf481b27

View file

@ -127,19 +127,12 @@ struct _RrAppearance {
gint w, h; gint w, h;
}; };
#if (G_BYTE_ORDER == G_BIG_ENDIAN) /* these are the same on all endian machines because it seems to be dependant
#define RrDefaultAlphaOffset 0 on the endianness of the gfx card, not the cpu. */
#define RrDefaultRedOffset 8
#define RrDefaultGreenOffset 16
#define RrDefaultBlueOffset 24
#define RrEndian MSBFirst
#else
#define RrDefaultAlphaOffset 24 #define RrDefaultAlphaOffset 24
#define RrDefaultRedOffset 16 #define RrDefaultRedOffset 16
#define RrDefaultGreenOffset 8 #define RrDefaultGreenOffset 8
#define RrDefaultBlueOffset 0 #define RrDefaultBlueOffset 0
#define RrEndian LSBFirst
#endif /* G_BYTE_ORDER == G_BIG_ENDIAN */
RrInstance* RrInstanceNew (Display *display, gint screen); RrInstance* RrInstanceNew (Display *display, gint screen);
void RrInstanceFree (RrInstance *inst); void RrInstanceFree (RrInstance *inst);