mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
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:
parent
52547cb9ea
commit
1bfd932f15
@ -428,8 +428,8 @@ meta_region_crop_and_scale (cairo_region_t *region,
|
||||
{
|
||||
viewport_region = cairo_region_copy (region);
|
||||
|
||||
if (G_APPROX_VALUE (src_rect->origin.x, 0, FLT_EPSILON) ||
|
||||
G_APPROX_VALUE (src_rect->origin.y, 0, FLT_EPSILON))
|
||||
if (!G_APPROX_VALUE (src_rect->origin.x, 0, FLT_EPSILON) ||
|
||||
!G_APPROX_VALUE (src_rect->origin.y, 0, FLT_EPSILON))
|
||||
{
|
||||
cairo_region_translate (viewport_region,
|
||||
(int) src_rect->origin.x,
|
||||
|
Loading…
Reference in New Issue
Block a user