border.c (449B)
1#include <gb/gb.h> 2#include <stdint.h> 3#include "sgb_border.h" 4 5#include "border_data.h" 6 7void main(void) { 8 9 // Wait 4 frames 10 // For SGB on PAL SNES this delay is required on startup, otherwise borders don't show up 11 for (uint8_t i = 4; i != 0; i--) wait_vbl_done(); 12 13 DISPLAY_ON; 14 set_sgb_border(border_chr, border_chr_size, border_map, border_map_size, border_pal, border_pal_size); 15 while(1) { 16 wait_vbl_done(); 17 } 18}