GLFW: Null: Fix out parameters not being set

From upstream: cd0dc76c7c.
This commit is contained in:
Luflosi
2020-09-07 20:51:21 +02:00
parent 5937892ebc
commit e8d8ced006
2 changed files with 24 additions and 5 deletions

23
glfw/null_window.c vendored
View File

@@ -274,10 +274,25 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,
{
if (window->null.decorated && !window->monitor)
{
*left = 1;
*top = 10;
*right = 1;
*bottom = 1;
if (left)
*left = 1;
if (top)
*top = 10;
if (right)
*right = 1;
if (bottom)
*bottom = 1;
}
else
{
if (left)
*left = 0;
if (top)
*top = 0;
if (right)
*right = 0;
if (bottom)
*bottom = 0;
}
}