From 4d7b578ad9737d26a0dd727e58443a8d01c0c8da Mon Sep 17 00:00:00 2001 From: Alex Marshall Date: Sun, 19 Apr 2009 23:47:03 -0700 Subject: Bah, small, stupid fix --- laichzeit/brlyt.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'laichzeit/brlyt.h') diff --git a/laichzeit/brlyt.h b/laichzeit/brlyt.h index 2588d78..33d9aef 100644 --- a/laichzeit/brlyt.h +++ b/laichzeit/brlyt.h @@ -19,6 +19,21 @@ #define USE_BRLYT +#define RGBA8(w, x, y, z)\ +( \ + (((u32)(z & 0xFF)) << 24) | \ + (((u32)(w & 0xFF)) << 16) | \ + (((u32)(x & 0xFF)) << 8) | \ + (((u32)(y & 0xFF)) << 0) \ +) + +#define RGB565(w, x, y, z)\ +( \ + (((u16)((w & 0xFF) >> 3)) << 11) | \ + (((u16)((x & 0xFF) >> 2)) << 6) | \ + (((u16)((y & 0xFF) >> 3)) << 0) \ +) + typedef enum { LYT_FONT_DEFAULT = 0 // Default. @@ -339,7 +354,7 @@ void LaichLyt_EndMat (BRLYT* brlyt, int mat ); void LaichLyt_EndPic (BRLYT* brlyt, int pic ); void LaichLyt_EndText (BRLYT* brlyt, int text ); void LaichLyt_EndPane (BRLYT* brlyt, int pane ); -u8* LaichLyt_Compile(BRLYT* brlyt); +u8* LaichLyt_Compile (BRLYT* brlyt, u32* size); #endif //BRLYT_H -- cgit v1.3.1