gba-x3dtest

diff src/palman.h @ 10:23f716fa7f10

changed to mode 5 again, this time with hardware scaling (looks kinda crap)
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 06:31:14 +0300
parents b0ed38f13261
children
line diff
     1.1 --- a/src/palman.h	Sun Jun 22 05:16:10 2014 +0300
     1.2 +++ b/src/palman.h	Sun Jun 22 06:31:14 2014 +0300
     1.3 @@ -1,12 +1,21 @@
     1.4  #ifndef PALMAN_H_
     1.5  #define PALMAN_H_
     1.6  
     1.7 +#include "config.h"
     1.8 +
     1.9 +#ifdef PALMODE
    1.10  #define RGBPAL(r, g, b)	\
    1.11  	(((r) & 0xe0) | (((g) >> 3) & 0x1c) | (((b) >> 6) & 0x3))
    1.12  
    1.13  #define GET_R_PAL(c)	((c) & 0xe0)
    1.14  #define GET_G_PAL(c)	(((c) & 0x1c) << 3)
    1.15  #define GET_B_PAL(c)	(((c) & 0x3) << 6)
    1.16 +#else
    1.17 +#define RGBPAL(r, g, b)		RGB(r, g, b)
    1.18 +#define GET_R_PAL(c)		GET_R(c)
    1.19 +#define GET_G_PAL(c)		GET_G(c)
    1.20 +#define GET_B_PAL(c)		GET_B(c)
    1.21 +#endif
    1.22  
    1.23  void palman_init(void);
    1.24