GLFW: Wayland: Fix partial framebuffer size retrieval

From upstream: 5f60c22cfa.
This commit is contained in:
Luflosi 2020-07-17 00:24:19 +02:00
parent 4f19403518
commit b1c3999a81
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

6
glfw/wl_window.c vendored
View File

@ -1081,8 +1081,10 @@ void _glfwPlatformGetFramebufferSize(_GLFWwindow* window,
int* width, int* height)
{
_glfwPlatformGetWindowSize(window, width, height);
*width *= window->wl.scale;
*height *= window->wl.scale;
if (width)
*width *= window->wl.scale;
if (height)
*height *= window->wl.scale;
}
void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,