From 3c2b3792a6b6a7c970fd9d12ba7efbe0a00a87b5 Mon Sep 17 00:00:00 2001 From: GhostlyDeath Date: Mon, 16 Jan 2012 19:00:16 -0500 Subject: [PATCH] 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. --- src/wmspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmspec.c b/src/wmspec.c index 95985dba..1b4cf039 100644 --- a/src/wmspec.c +++ b/src/wmspec.c @@ -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 */