Skip to content

GB_get_screen_width and GB_get_screen_height

Lior Halphon edited this page Nov 30, 2024 · 2 revisions

Definition

unsigned GB_get_screen_width(GB_gameboy_t *gb);

unsigned GB_get_screen_height(GB_gameboy_t *gb);

In display.h

Description

These functions return the dimensions of the video output of an emulator instance. The dimensions are affected by the emulated model and the current border mode of the emulator instance and can be either 160×144 or 256×224.

Thread Safety

GB_get_screen_width and GB_get_screen_height are thread-safe and can be called from any thread and context.

See Also

Clone this wiki locally