mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
Implement scale callback on Wayland
This commit is contained in:
parent
2c1fc13ee4
commit
1e1e5c3cc4
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user