From 339372ac99a961318806ee700af9c85d35e9cdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 20 Nov 2019 22:07:37 +0100 Subject: [PATCH] clutter/text: Stop using deprecated cogl-pango API Use the one passing a framebuffer instead of the one using the deprecated implicit framebuffer stack. https://gitlab.gnome.org/GNOME/mutter/merge_requests/935 --- clutter/clutter/clutter-text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c index 33d30f01e..461e29fbf 100644 --- a/clutter/clutter/clutter-text.c +++ b/clutter/clutter/clutter-text.c @@ -1991,7 +1991,7 @@ selection_paint (ClutterText *self, color->blue, paint_opacity * color->alpha / 255); - cogl_pango_render_layout (layout, priv->text_x, 0, &cogl_color, 0); + cogl_pango_show_layout (fb, layout, priv->text_x, 0, &cogl_color); cogl_framebuffer_pop_clip (fb); } @@ -2755,7 +2755,7 @@ clutter_text_paint (ClutterActor *self, priv->text_color.green, priv->text_color.blue, real_opacity); - cogl_pango_render_layout (layout, priv->text_x, priv->text_y, &color, 0); + cogl_pango_show_layout (fb, layout, priv->text_x, priv->text_y, &color); selection_paint (text, fb);