Wayland: Fix partial framebuffer size retrieval

(cherry picked from commit 5f60c22cfa)
This commit is contained in:
Camilla Löwy 2020-07-15 21:56:52 +02:00
parent 85a169ff50
commit bd2fb9ebaf
2 changed files with 5 additions and 2 deletions

View File

@ -135,6 +135,7 @@ information on what to include when reporting a bug.
- [X11] Bugfix: Keys pressed simultaneously with others were not always
reported (#1112,#1415,#1472,#1616)
- [Wayland] Bugfix: Repeated keys could be reported with `NULL` window (#1704)
- [Wayland] Bugfix: Retrieving partial framebuffer size would segfault
## Contact

View File

@ -1118,8 +1118,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,