same default offsets for all endian machines
This commit is contained in:
parent
6f1c3223e0
commit
6fdf481b27
1 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue