/* * From the sgb_border example from gbdk-2020: * https://github.com/gbdk-2020/gbdk-2020/tree/develop/gbdk-lib/examples/gb/sgb_border */ #ifndef __SGB_BORDER_H_INCLUDE #define __SGB_BORDER_H_INCLUDE #include #include #define SNES_RGB(R,G,B) (uint16_t)((B) << 10 | (G) << 5 | (R)) /** sets SGB border The display must be turned on before calling this function (with @ref DISPLAY_ON). When using the SGB with a PAL SNES, a delay should be added just after program startup such as: \code{.c} // Wait 4 frames // For PAL SNES this delay is required on startup for (uint8_t i = 4; i != 0; i--) vsync(); \endcode */ void set_sgb_border(const unsigned char * tiledata, size_t tiledata_size, const unsigned char * tilemap, size_t tilemap_size, const unsigned char * palette, size_t palette_size); #endif