-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_set_border_mode
Lior Halphon edited this page Nov 27, 2024
·
2 revisions
typedef enum {
GB_BORDER_SGB,
GB_BORDER_NEVER,
GB_BORDER_ALWAYS,
} GB_border_mode_t;
void GB_set_border_mode(GB_gameboy_t *gb, GB_border_mode_t border_mode);
In gb.h
This function controls whether an emulator instance should display a border or not:
-
GB_BORDER_SGB
: Only display a border while emulating a Super Game Boy (default) -
GB_BORDER_NEVER
: Never display a border -
GB_BORDER_ALWAYS
: Always display a border
When using GB_BORDER_ALWAYS
while emulating a non-Super Game Boy model, SameBoy use the Super Game Boy border as the border if GB_set_boot_rom_load_callback was used. Otherwise, or if a Super Game Boy border was not found, a default border for the current model will be used instead.
GB_set_border_mode
is thread-safe and can be called from any thread and context.