diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 98d4fec7..68885ce3 100644 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -520,6 +520,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; + RGFW_window_resize(platform.window, RGFW_AREA(width, height)); } diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index e15d3f5b..15c0918d 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -667,6 +667,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); }