[gnome-shell/gbsneto/content] util: Fix compiler warning
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/content] util: Fix compiler warning
- Date: Thu, 18 Apr 2019 18:40:16 +0000 (UTC)
commit 4068d204ff39ca16ca3de2abffd2bbe874a4eb30
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Apr 18 15:38:01 2019 -0300
util: Fix compiler warning
A harmless warning due to meta_surface_actor_get_texture()
now returning a pointer to MetaShapedTexture instead of
ClutterActor.
No functional changes.
src/shell-util.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index 31bb18e70..5838d2327 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -430,7 +430,7 @@ ClutterContent *
shell_util_get_content_for_window_actor (MetaWindowActor *window_actor,
MetaRectangle *window_rect)
{
- ClutterActor *texture;
+ MetaShapedTexture *texture;
ClutterContent *content;
cairo_surface_t *surface;
cairo_rectangle_int_t clip;
@@ -453,8 +453,7 @@ shell_util_get_content_for_window_actor (MetaWindowActor *window_actor,
clip.width = ceilf (window_rect->width * resource_scale);
clip.height = ceilf (window_rect->height * resource_scale);
- surface = meta_shaped_texture_get_image (META_SHAPED_TEXTURE (texture),
- &clip);
+ surface = meta_shaped_texture_get_image (texture, &clip);
content = clutter_canvas_new ();
clutter_canvas_set_size (CLUTTER_CANVAS (content),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]