diff options
| author | Alex Marshall <SquidMan72@gmail.com> | 2009-04-19 23:47:03 -0700 |
|---|---|---|
| committer | Alex Marshall <SquidMan72@gmail.com> | 2009-04-19 23:47:03 -0700 |
| commit | 4d7b578ad9737d26a0dd727e58443a8d01c0c8da (patch) | |
| tree | 3246a541e0308faf6e895dc27190973ea295cff0 /laichzeit/brlyt.h | |
| parent | 8182882e78fec04d159ae979d365eeffe4915ce6 (diff) | |
Bah, small, stupid fix
Diffstat (limited to '')
| -rw-r--r-- | laichzeit/brlyt.h | 17 |
1 files changed, 16 insertions, 1 deletions
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 |
