summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorJulianiolo <[email protected]>2021-05-30 18:33:38 +0200
committerGitHub <[email protected]>2021-05-30 18:33:38 +0200
commitcc4de1d1f9073dc75a4d79cdc2551b5e2e1b5215 (patch)
tree47884769c39a369927b5b729b1f2a9a8cb72029c /src/core.c
parent71995d52b36c86b09f064953fb3dd2d2fd60c704 (diff)
downloadraylib-cc4de1d1f9073dc75a4d79cdc2551b5e2e1b5215.tar.gz
raylib-cc4de1d1f9073dc75a4d79cdc2551b5e2e1b5215.zip
note (#1797)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 1289f54d..5d7b0eca 100644
--- a/src/core.c
+++ b/src/core.c
@@ -3548,7 +3548,7 @@ static bool InitGraphicsDevice(int width, int height)
CORE.Window.display.width = mode->width;
CORE.Window.display.height = mode->height;
- // Screen size security check
+ // Set screen width/height to the display width/height if they are 0
if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
#endif // PLATFORM_DESKTOP