wayland: surface_scale(): improve debug logging

This commit is contained in:
Daniel Eklöf 2023-06-26 21:09:18 +02:00
parent 8f74b1090a
commit c61247f317
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1898,7 +1898,9 @@ wayl_surface_scale_explicit_width_height(
if (wayl_fractional_scaling(win->term->wl) && win->have_preferred_scale) {
#if defined(HAVE_FRACTIONAL_SCALE)
LOG_DBG("scaling by a factor of %.2f (fractional scaling)", scale);
LOG_DBG("scaling by a factor of %.2f using fractional scaling "
"(width=%d, height=%d) ", scale, width, height);
wp_viewport_set_destination(
surf->viewport,
round((float)width / scale),
@ -1908,7 +1910,8 @@ wayl_surface_scale_explicit_width_height(
"but fractional scaling was not available at compile time").
#endif
} else {
LOG_DBG("scaling by a factor of %.2f (legacy)", scale);
LOG_DBG("scaling by a factor of %.2f using legacy mode "
"(width=%d, height=%d)", scale, width, height);
xassert(scale == floor(scale));