region-utils: Make transform util const correct

The input should be const, as it will not be altered.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1237
This commit is contained in:
Jonas Ådahl 2020-05-05 19:08:03 +02:00 committed by Georges Basile Stavracas Neto
parent db975bd2a8
commit 03c65b93e6
2 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ meta_make_border_region (cairo_region_t *region,
}
cairo_region_t *
meta_region_transform (cairo_region_t *region,
meta_region_transform (const cairo_region_t *region,
MetaMonitorTransform transform,
int width,
int height)

View File

@ -106,7 +106,7 @@ cairo_region_t * meta_make_border_region (cairo_region_t *region,
int y_amount,
gboolean flip);
cairo_region_t * meta_region_transform (cairo_region_t *region,
cairo_region_t * meta_region_transform (const cairo_region_t *region,
MetaMonitorTransform transform,
int width,
int height);