added logo splash screen
[gbajam22] / src / util.h
index 3e8ee67..6902d64 100644 (file)
@@ -5,6 +5,9 @@
 #include <stdint.h>
 #include "gba.h"
 
+#define RGB555(r, g, b)        \
+       (((r) >> 3) | (((g) << 2) & 0x3e0) | (((b) << 7) & 0x7c00))
+
 #ifdef BUILD_GBA
 
 #define wait_vblank() \