gba-x3dtest

view src/palman.c @ 13:2070a81127f2

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 23 Jun 2014 08:28:28 +0300
parents
children
line source
1 #include "gbasys.h"
2 #include "palman.h"
4 void palman_init(void)
5 {
6 int i;
8 for(i=0; i<255; i++) {
9 int r = GET_R_PAL(i);
10 int g = GET_G_PAL(i);
11 int b = GET_B_PAL(i);
13 set_palette(i, r, g, b);
14 }
15 set_palette(255, 255, 255, 255);
16 }