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