gba-trycatch

view src/palman.c @ 9:b0ed38f13261

working on the rasterizer
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 05:16:10 +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 }