mirror of
https://github.com/brl/mutter.git
synced 2025-03-13 06:45:03 +00:00
shaped-texture: Update the full bounding box of each clip rectangle
When using fractional scaling this matters, so that you don't miss a line of pixels at the edge of the clip rectangle by rounding down. This was observed as a line of corrupt pixels in Firefox (Wayland) tooltips. Related to: https://gitlab.gnome.org/GNOME/mutter/-/issues/1500 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1554>
This commit is contained in:
parent
ff014c5319
commit
f512d4fefa
@ -1002,7 +1002,7 @@ meta_shaped_texture_update_area (MetaShapedTexture *stex,
|
||||
|
||||
meta_rectangle_scale_double (clip,
|
||||
1.0 / stex->buffer_scale,
|
||||
META_ROUNDING_STRATEGY_SHRINK,
|
||||
META_ROUNDING_STRATEGY_GROW,
|
||||
clip);
|
||||
|
||||
inverted_transform = meta_monitor_transform_invert (stex->transform);
|
||||
|
Loading…
x
Reference in New Issue
Block a user