mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-04 08:56:26 +00:00
fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms (#4451)
This commit is contained in:
@@ -520,6 +520,9 @@ void SetWindowMaxSize(int width, int height)
|
|||||||
// Set window dimensions
|
// Set window dimensions
|
||||||
void SetWindowSize(int width, int height)
|
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));
|
RGFW_window_resize(platform.window, RGFW_AREA(width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -667,6 +667,9 @@ void SetWindowMaxSize(int width, int height)
|
|||||||
// Set window dimensions
|
// Set window dimensions
|
||||||
void SetWindowSize(int width, int height)
|
void SetWindowSize(int width, int height)
|
||||||
{
|
{
|
||||||
|
CORE.Window.screen.width = width;
|
||||||
|
CORE.Window.Screen.height = height;
|
||||||
|
|
||||||
glfwSetWindowSize(platform.handle, width, height);
|
glfwSetWindowSize(platform.handle, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user