mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
c61247f317
commit
ce31cc518a
1 changed files with 1 additions and 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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue