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
This commit is contained in:
Jonas Ådahl 2019-11-20 22:07:37 +01:00 committed by Georges Basile Stavracas Neto
parent cb9d6b79ef
commit 339372ac99

View File

@ -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);