init.c
358 Bytes
#include "libfb.h"
int FB_SCREEN_WD;
int FB_SCREEN_HT;
u16 FB_BGCOLOR;
void fbInit(int res) {
if (res == FB_LOW_RES) {
FB_SCREEN_WD = 320;
FB_SCREEN_HT = 240;
osViSetMode(&osViModeNtscLpn1);
} else {
FB_SCREEN_WD = 640;
FB_SCREEN_HT = 480;
osViSetMode(&osViModeNtscHpf1);
}
FB_BGCOLOR = 0;
}