gba-x3dtest

view src/palman.c @ 10:23f716fa7f10

changed to mode 5 again, this time with hardware scaling (looks kinda crap)
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Jun 2014 06:31:14 +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 }