summaryrefslogtreecommitdiff
path: root/include/color.h
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2025-04-25 21:12:35 -0400
committerGitHub <noreply@github.com>2025-04-25 21:12:35 -0400
commit25b2fa4bca1f1d2d155db2610191af1075e813b3 (patch)
tree9c7c4565b76ffbbb7c4ef2dff806e7691b18c508 /include/color.h
parentd4528a0541603ca126bc9c734b9c56bb094211cf (diff)
macros.h 3/5: Split various macros (#2512)
* split out various macros * fix * fix2 * fix dw * libc path * fix macro * does this fix bss * fix bss
Diffstat (limited to 'include/color.h')
-rw-r--r--include/color.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/color.h b/include/color.h
index 816d38349..73fa5d63a 100644
--- a/include/color.h
+++ b/include/color.h
@@ -33,4 +33,6 @@ typedef union Color_RGBA16 {
u16 rgba;
} Color_RGBA16;
+#define RGBA8(r, g, b, a) ((((r) & 0xFF) << 24) | (((g) & 0xFF) << 16) | (((b) & 0xFF) << 8) | (((a) & 0xFF) << 0))
+
#endif