shared/cairo-util: Do not save/restore the cairo context twice

We are already doing that before calling theme_render_frame() so no need
to do it again in layout creation.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2022-07-08 12:15:16 +03:00
parent b749138758
commit f8a9ce3f55
1 changed files with 0 additions and 3 deletions

View File

@ -578,8 +578,6 @@ theme_render_frame(struct theme *t,
PangoLayout *title_layout;
PangoRectangle logical;
cairo_save(cr);
title_layout = create_layout(cr, title);
pango_layout_get_pixel_extents (title_layout, NULL, &logical);
@ -623,7 +621,6 @@ theme_render_frame(struct theme *t,
}
#ifdef HAVE_PANGO
cairo_restore(cr);
g_object_unref(title_layout);
#endif
}