Wayland: Fix partial framebuffer size retrieval

This commit is contained in:
Camilla Löwy
2020-07-15 21:56:52 +02:00
parent 5c92cd9f52
commit 5f60c22cfa
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -955,8 +955,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,