summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnthony Carbajal <[email protected]>2024-06-17 06:42:53 -0500
committerGitHub <[email protected]>2024-06-17 13:42:53 +0200
commit52f2a10db610d0e9f619fd7c521db08a876547d0 (patch)
tree31910d3bfe2dead58bcffb1a5e89554178611a3a
parentdcf2f6a8e97911c90efce5722bd7f0c7cdc8601e (diff)
downloadraylib-52f2a10db610d0e9f619fd7c521db08a876547d0.tar.gz
raylib-52f2a10db610d0e9f619fd7c521db08a876547d0.zip
fixed issue with GetScreenWidth/GetScreenHeight (#4074)
-rw-r--r--src/platforms/rcore_desktop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c
index 6fe054a8..bb3fcf4f 100644
--- a/src/platforms/rcore_desktop.c
+++ b/src/platforms/rcore_desktop.c
@@ -666,6 +666,9 @@ void SetWindowMaxSize(int width, int height)
// Set window dimensions
void SetWindowSize(int width, int height)
{
+ CORE.Window.screen.width = width;
+ CORE.Window.screen.height = height;
+
glfwSetWindowSize(platform.handle, width, height);
}