diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-26 19:09:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 13:38:24 +0000 |
| commit | ce31cc518a48d978c84448424d0d2a6bba4a5a5f (patch) | |
| tree | 520900e18bca59dccd345bf0c9d4af45a67e5233 | |
| parent | wayland: surface_scale(): improve debug logging (diff) | |
wayland: surface_scale(): reset buffer scale when using fractional scaling
Since the first frame uses legacy scaling, the surface may have a
buffer scale > 1, which isn’t allowed.
| -rw-r--r-- | wayland.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1901,6 +1901,7 @@ wayl_surface_scale_explicit_width_height( LOG_DBG("scaling by a factor of %.2f using fractional scaling " "(width=%d, height=%d) ", scale, width, height); + wl_surface_set_buffer_scale(surf->surf, 1); wp_viewport_set_destination( surf->viewport, round((float)width / scale), |
