boxes: Fix calculation of rounded rectangles
Since 68fba458
the function is used for more calculations, exposing
a bug when used with fractional scaling.
https://gitlab.gnome.org/GNOME/mutter/issues/609
This commit is contained in:
parent
a2c545c321
commit
1b61b9cd73
@ -2132,8 +2132,8 @@ meta_rectangle_from_clutter_rect (ClutterRect *rect,
|
|||||||
*dest = (MetaRectangle) {
|
*dest = (MetaRectangle) {
|
||||||
.x = ceilf (rect->origin.x),
|
.x = ceilf (rect->origin.x),
|
||||||
.y = ceilf (rect->origin.y),
|
.y = ceilf (rect->origin.y),
|
||||||
.width = floorf (rect->origin.x + rect->size.width) - dest->x,
|
.width = floorf (rect->size.width),
|
||||||
.height = floorf (rect->origin.y + rect->size.height) - dest->x,
|
.height = floorf (rect->size.height),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user