commit 061c859

uint  ·  2026-07-31 00:00:30 +0000 UTC
parent fabcc13
move RGBA macro to util.h
1 files changed,  +6, -0
+6, -0
 1@@ -1,6 +1,12 @@
 2 #ifndef UTIL_H
 3 #define UTIL_H
 4 
 5+#define RGBA(r, g, b, a) ( \
 6+    ((u32)(r)) | \
 7+    ((u32)(g) << 8) | \
 8+    ((u32)(b) << 16) | \
 9+    ((u32)(a) << 24))
10+
11 typedef enum { /* TODO: rename to MG_EC_... */
12 	       MG_ERR_EXIT_SUCCESS,
13 	       MG_ERR_EXIT_FAILURE,