Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • bbplayer
  • bbapps
  • libfb
  • init.c
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
init.c 358 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#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;
}