From d0a7561dd20847504b2449e17fd791f6c2800c84 Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 13 Aug 2024 18:56:35 +0000 Subject: =?UTF-8?q?color:=20rgba2xrgb=20=E2=89=A0=20swabl.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- color.c | 4 ++-- 1 file 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); } -- cgit v1.2.3