fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms (#4451)

This commit is contained in:
Arche Washi 2024-10-31 03:13:53 +08:00 committed by GitHub
parent ad79d4a884
commit 3bad05aa7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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));
}

View file

@ -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);
}