mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
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:
committed by
Carlos R. Mafra
parent
215a57077c
commit
3c2b3792a6
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user