summaryrefslogtreecommitdiffhomepage
path: root/projects/scripts
diff options
context:
space:
mode:
authorDoyle <[email protected]>2020-03-16 01:56:43 +1100
committerGitHub <[email protected]>2020-03-15 15:56:43 +0100
commit427be604b9b026eb83ba3d023c640b4a59fa0c4d (patch)
tree8632b78394c74479b7f0874b5c92bff25614e58a /projects/scripts
parentd57b5ac89a5e574930773f75397f9acdd578e70e (diff)
downloadraylib-427be604b9b026eb83ba3d023c640b4a59fa0c4d.tar.gz
raylib-427be604b9b026eb83ba3d023c640b4a59fa0c4d.zip
Android: Set display.[width, height] before screen size check (#1132)
In `InitGraphicsDevice(...)`, the Android section has a screen security check like other platforms- but CORE.display.width, CORE.display.height are not set yet, so the security check sets it to 0. So ensure we query the device's screen width and height before the screen size security check. This also gives you the ability to run a proper full-screen application on Android without any scaling and guess work on the target device by setting screen width and height to 0 in `InitWindow(...)` and using `GetScreen[Width|Height]()` to get the actual values.
Diffstat (limited to 'projects/scripts')
0 files changed, 0 insertions, 0 deletions