mirror of https://github.com/LIJI32/SameBoy.git
Updated GB_get_screen_width and GB_get_screen_height (markdown)
parent
6060a63c69
commit
b30a6db2de
|
@ -1,15 +0,0 @@
|
|||
## Definition
|
||||
|
||||
<tt>unsigned GB_get_screen_height([[GB_gameboy_t]] *gb);</tt>
|
||||
|
||||
<tt>unsigned GB_get_screen_width([[GB_gameboy_t]] *gb);</tt>
|
||||
|
||||
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.
|
|
@ -0,0 +1,20 @@
|
|||
## Definition
|
||||
|
||||
<tt>unsigned GB_get_screen_width([[GB_gameboy_t]] *gb);</tt>
|
||||
|
||||
<tt>unsigned GB_get_screen_height([[GB_gameboy_t]] *gb);</tt>
|
||||
|
||||
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]]
|
Loading…
Reference in New Issue