fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms

This commit is contained in:
Arche Washi 2024-10-31 02:23:17 +08:00
parent ad79d4a884
commit 075f406ea4
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);
}