diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-26 19:09:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 13:38:24 +0000 |
| commit | c61247f317b8b0559feeda551e8e7e33b54d3b3e (patch) | |
| tree | 6dc1c5789ee29896fea33232d31aeba6d4ee9969 | |
| parent | wayland: use legacy scaling until fractional_scale::preferred_scale() has been called (diff) | |
wayland: surface_scale(): improve debug logging
| -rw-r--r-- | wayland.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)); |
