Remove endian swap for icon image data.

On my PowerPC Debian Squeeze System, the icons are colored
incorrectly. This patch removes the swapping of the data on Big Endian
systems, thus causing the icons to be colored correctly.

The data appears to already be in the native endian format.
This commit is contained in:
GhostlyDeath authored and Carlos R. Mafra committed 2012-01-18 12:04:57 +00:00
1 parent 215a57077c
commit 3c2b3792a6
1 file changed
+1 -1
+1 -1
View File
@@ -404,7 +404,7 @@ static RImage *makeRImageFromARGBData(unsigned long *data)
for (imgdata = image->data, i = 2; i < size + 2; i++, imgdata += 4) {
pixel = data[i];
#if BYTE_ORDER == BIG_ENDIAN
#if 0//BYTE_ORDER == BIG_ENDIAN
imgdata[2] = (pixel >> 24) & 0xff; /* A */
imgdata[1] = (pixel >> 16) & 0xff; /* R */
imgdata[0] = (pixel >> 8) & 0xff; /* G */