gba-x3dtest

annotate src/palman.c @ 19:62390f9cc93e

texture cache optimization failed
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 30 Jun 2014 09:07:41 +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 }