]> Dogcows Code - chaz/openbox/commitdiff
same default offsets for all endian machines
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 03:19:51 +0000 (03:19 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 03:19:51 +0000 (03:19 +0000)
render/render.h

index 8a1eda123168abe3474c984490e7254cbc2cddc3..18ec799c0fb58676f933f0162bc4ba2468f09d5d 100644 (file)
@@ -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);
This page took 0.022513 seconds and 4 git commands to generate.