This commit is contained in:
Kovid Goyal 2022-03-29 15:34:34 +05:30
parent 087b52e3e0
commit 5c03a52a0b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

6
glfw/wl_window.c vendored
View File

@ -246,7 +246,7 @@ dispatchChangesAfterConfigure(_GLFWwindow *window, int32_t width, int32_t height
}
if (scale_changed) {
debug("Scale changed to %d in dispatchChangesAfterConfigure", window->wl.scale);
debug("Scale changed to %d in dispatchChangesAfterConfigure\n", window->wl.scale);
if (!size_changed) resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
}
@ -298,7 +298,7 @@ static void surfaceHandleEnter(void *data,
window->wl.monitors[window->wl.monitorsCount++] = monitor;
if (checkScaleChange(window)) {
debug("Scale changed to %d in surface enter event", window->wl.scale);
debug("Scale changed to %d in surface enter event\n", window->wl.scale);
resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
ensure_csd_resources(window);
@ -324,7 +324,7 @@ static void surfaceHandleLeave(void *data,
window->wl.monitors[--window->wl.monitorsCount] = NULL;
if (checkScaleChange(window)) {
debug("Scale changed to %d in surface leave event", window->wl.scale);
debug("Scale changed to %d in surface leave event\n", window->wl.scale);
resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
ensure_csd_resources(window);