gba-trycatch

view src/palman.c @ 15:b755fb002f17

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 25 Jun 2014 17:02:48 +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 }