1
0
Fork 0

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:
Daniel van Vugt 2020-10-29 16:57:45 +08:00
parent ff014c5319
commit f512d4fefa

View file

@ -1002,7 +1002,7 @@ meta_shaped_texture_update_area (MetaShapedTexture *stex,
meta_rectangle_scale_double (clip, meta_rectangle_scale_double (clip,
1.0 / stex->buffer_scale, 1.0 / stex->buffer_scale,
META_ROUNDING_STRATEGY_SHRINK, META_ROUNDING_STRATEGY_GROW,
clip); clip);
inverted_transform = meta_monitor_transform_invert (stex->transform); inverted_transform = meta_monitor_transform_invert (stex->transform);