2 GB_get_screen_width and GB_get_screen_height
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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