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

2
glfw/wl_window.c vendored
View File

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