shaped-texture: Stop using gdk rect helper

We have our own version, just use that.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/362
This commit is contained in:
Jonas Ådahl 2018-12-20 17:21:26 +01:00 committed by Ray Strode
parent e8a3341700
commit 06be60bc72

View File

@ -940,9 +940,7 @@ meta_shaped_texture_get_image (MetaShapedTexture *stex,
if (clip != NULL) if (clip != NULL)
{ {
/* GdkRectangle is just a typedef of cairo_rectangle_int_t, if (!meta_rectangle_intersect (&texture_rect, clip, clip))
* so we can use the gdk_rectangle_* APIs on these. */
if (!gdk_rectangle_intersect (&texture_rect, clip, clip))
return NULL; return NULL;
} }