gba-x3dtest

diff src/config.h @ 9:b0ed38f13261

working on the rasterizer
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 05:16:10 +0300
parents 73b5f2e5d18a
children
line diff
     1.1 --- a/src/config.h	Thu Jun 19 05:53:46 2014 +0300
     1.2 +++ b/src/config.h	Sun Jun 22 05:16:10 2014 +0300
     1.3 @@ -1,8 +1,24 @@
     1.4  #ifndef CONFIG_H_
     1.5  #define CONFIG_H_
     1.6  
     1.7 -#define GFX_MODE	VMODE_LFB_160x128_16
     1.8 +#include "gbasys.h"
     1.9 +
    1.10 +/* 3: 240x160:16
    1.11 + * 4: 240x160:8
    1.12 + * 5: 160x128:16
    1.13 + */
    1.14 +#define GFX_MODE	5
    1.15 +
    1.16 +#if (GFX_MODE == 3) || (GFX_MODE == 4)
    1.17 +#define WIDTH		240
    1.18 +#define HEIGHT		160
    1.19 +#else
    1.20  #define WIDTH		160
    1.21  #define HEIGHT		128
    1.22 +#endif
    1.23 +
    1.24 +#if (GFX_MODE == 4)
    1.25 +#define PALMODE
    1.26 +#endif
    1.27  
    1.28  #endif	/* CONFIG_H_ */