region-utils: Fix typo in crop_and_scale() fastpath

Fixes 09b1bbb1cf

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1786>
This commit is contained in:
Robert Mader 2021-03-18 13:42:30 +01:00 committed by Marge Bot
parent 52547cb9ea
commit 1bfd932f15

View File

@ -428,8 +428,8 @@ meta_region_crop_and_scale (cairo_region_t *region,
{ {
viewport_region = cairo_region_copy (region); viewport_region = cairo_region_copy (region);
if (G_APPROX_VALUE (src_rect->origin.x, 0, FLT_EPSILON) || if (!G_APPROX_VALUE (src_rect->origin.x, 0, FLT_EPSILON) ||
G_APPROX_VALUE (src_rect->origin.y, 0, FLT_EPSILON)) !G_APPROX_VALUE (src_rect->origin.y, 0, FLT_EPSILON))
{ {
cairo_region_translate (viewport_region, cairo_region_translate (viewport_region,
(int) src_rect->origin.x, (int) src_rect->origin.x,