1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Wayland: Implement scale callback

Closes #1181.
This commit is contained in:
Emmanuel Gil Peyrot 2018-01-09 21:33:23 +01:00 committed by Camilla Löwy
parent 93186e4999
commit 6c421f131d

View File

@ -125,6 +125,7 @@ static void checkScaleChange(_GLFWwindow* window)
wl_surface_set_buffer_scale(window->wl.surface, scale);
wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0);
_glfwInputFramebufferSize(window, scaledWidth, scaledHeight);
_glfwInputWindowContentScale(window, scale, scale);
}
}