mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
wayland: surface_scale(): improve debug logging
This commit is contained in:
parent
8f74b1090a
commit
c61247f317
1 changed files with 5 additions and 2 deletions
|
|
@ -1898,7 +1898,9 @@ wayl_surface_scale_explicit_width_height(
|
||||||
|
|
||||||
if (wayl_fractional_scaling(win->term->wl) && win->have_preferred_scale) {
|
if (wayl_fractional_scaling(win->term->wl) && win->have_preferred_scale) {
|
||||||
#if defined(HAVE_FRACTIONAL_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(
|
wp_viewport_set_destination(
|
||||||
surf->viewport,
|
surf->viewport,
|
||||||
round((float)width / scale),
|
round((float)width / scale),
|
||||||
|
|
@ -1908,7 +1910,8 @@ wayl_surface_scale_explicit_width_height(
|
||||||
"but fractional scaling was not available at compile time").
|
"but fractional scaling was not available at compile time").
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} 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));
|
xassert(scale == floor(scale));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue