summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/color.c b/color.c
index f38e66d..13cbef7 100644
--- a/color.c
+++ b/color.c
@@ -144,6 +144,6 @@ linear2srgb(Color c)
ulong
rgba2xrgb(ulong c)
{
- return (c & 0xFF)<<24|(c>>8 & 0xFF)<<16|
- (c>>16 & 0xFF)<<8|(c>>24 & 0xFF);
+ return (c & 0xFF)<<24|(c>>24 & 0xFF)<<16|
+ (c>>16 & 0xFF)<<8|(c>>8 & 0xFF);
}