shithub: libgraphics

Download patch

ref: d0a7561dd20847504b2449e17fd791f6c2800c84
parent: 2715ad65bd01c1108d53c44b677847af9f4ce42e
author: rodri <rgl@antares-labs.eu>
date: Tue Aug 13 14:56:35 EDT 2024

color: rgba2xrgb ≠ swabl.

--- a/color.c
+++ b/color.c
@@ -144,6 +144,6 @@
 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);
 }