From b30a6db2deb7ca6b40c34d228371509069960aee Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 26 Nov 2024 23:37:25 +0200 Subject: [PATCH] Updated GB_get_screen_width and GB_get_screen_height (markdown) --- ...t_screen_width and GB_get_screen_height.md | 15 -------------- ...t_screen_width-and-GB_get_screen_height.md | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 GB_get_screen_width and GB_get_screen_height.md create mode 100644 GB_get_screen_width-and-GB_get_screen_height.md diff --git a/GB_get_screen_width and GB_get_screen_height.md b/GB_get_screen_width and GB_get_screen_height.md deleted file mode 100644 index efb59b3..0000000 --- a/GB_get_screen_width and GB_get_screen_height.md +++ /dev/null @@ -1,15 +0,0 @@ -## Definition - -unsigned GB_get_screen_height([[GB_gameboy_t]] *gb); - -unsigned GB_get_screen_width([[GB_gameboy_t]] *gb); - -In `display.h` - -## Description - -TBD - -## Thread Safety - -`GB_get_screen_width` and `GB_get_screen_height` are thread-safe and can be called from any thread and context. diff --git a/GB_get_screen_width-and-GB_get_screen_height.md b/GB_get_screen_width-and-GB_get_screen_height.md new file mode 100644 index 0000000..91de0f3 --- /dev/null +++ b/GB_get_screen_width-and-GB_get_screen_height.md @@ -0,0 +1,20 @@ +## Definition + +unsigned GB_get_screen_width([[GB_gameboy_t]] *gb); + +unsigned GB_get_screen_height([[GB_gameboy_t]] *gb); + +In `display.h` + +## Description + +These function return the dimensions of the video output of an emulator instance. The dimensions are affected by the [[emulated model|GB_model_t]] and the current [[border mode|GB_set_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 + +* [[GB_set_pixels_output]] +* [[GB_set_border_mode]] \ No newline at end of file