GLFW: Wayland: Fix partial framebuffer size retrieval

From upstream: https://github.com/glfw/glfw/commit/5f60c22cfa5c3d62e2cb2f281fd057384fc58f54.
This commit is contained in:
Luflosi
2020-07-17 21:10:32 +02:00
parent 4f19403518
commit b1c3999a81
+4 -2
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,