X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Futil.h;h=6902d64c2f13f873b6eb69e5a8b00d0f2012606a;hb=97f8eca559ee318131a11436b12f06b61b8629ad;hp=3e8ee67d4e0bb225a9f31b088ae76fb05ae5bc38;hpb=2e5cc6552f3e43f97fa049bb91498b4ae8877438;p=gbajam22 diff --git a/src/util.h b/src/util.h index 3e8ee67..6902d64 100644 --- a/src/util.h +++ b/src/util.h @@ -5,6 +5,9 @@ #include #include "gba.h" +#define RGB555(r, g, b) \ + (((r) >> 3) | (((g) << 2) & 0x3e0) | (((b) << 7) & 0x7c00)) + #ifdef BUILD_GBA #define wait_vblank() \