gba-trycatch

annotate src/palman.c @ 11:c47e54796b82

added a simple README
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 07:54:29 +0300
parents
children
rev   line source
nuclear@9 1 #include "gbasys.h"
nuclear@9 2 #include "palman.h"
nuclear@9 3
nuclear@9 4 void palman_init(void)
nuclear@9 5 {
nuclear@9 6 int i;
nuclear@9 7
nuclear@9 8 for(i=0; i<255; i++) {
nuclear@9 9 int r = GET_R_PAL(i);
nuclear@9 10 int g = GET_G_PAL(i);
nuclear@9 11 int b = GET_B_PAL(i);
nuclear@9 12
nuclear@9 13 set_palette(i, r, g, b);
nuclear@9 14 }
nuclear@9 15 set_palette(255, 255, 255, 255);
nuclear@9 16 }