[mutter] shaped-texture: Stop using gdk rect helper
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] shaped-texture: Stop using gdk rect helper
- Date: Thu, 3 Jan 2019 11:20:16 +0000 (UTC)
commit d3301d6b53cab840f5f5afacae5c13ede6baa0c7
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Dec 20 17:21:26 2018 +0100
shaped-texture: Stop using gdk rect helper
We have our own version, just use that.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/362
src/compositor/meta-shaped-texture.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 20b06868c..18d2524f7 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -1072,9 +1072,7 @@ meta_shaped_texture_get_image (MetaShapedTexture *stex,
if (clip != NULL)
{
- /* GdkRectangle is just a typedef of cairo_rectangle_int_t,
- * so we can use the gdk_rectangle_* APIs on these. */
- if (!gdk_rectangle_intersect (&texture_rect, clip, clip))
+ if (!meta_rectangle_intersect (&texture_rect, clip, clip))
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]