mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 22:07:24 +00:00
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:
parent
b749138758
commit
f8a9ce3f55
|
@ -578,8 +578,6 @@ theme_render_frame(struct theme *t,
|
||||||
PangoLayout *title_layout;
|
PangoLayout *title_layout;
|
||||||
PangoRectangle logical;
|
PangoRectangle logical;
|
||||||
|
|
||||||
cairo_save(cr);
|
|
||||||
|
|
||||||
title_layout = create_layout(cr, title);
|
title_layout = create_layout(cr, title);
|
||||||
|
|
||||||
pango_layout_get_pixel_extents (title_layout, NULL, &logical);
|
pango_layout_get_pixel_extents (title_layout, NULL, &logical);
|
||||||
|
@ -623,7 +621,6 @@ theme_render_frame(struct theme *t,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_PANGO
|
#ifdef HAVE_PANGO
|
||||||
cairo_restore(cr);
|
|
||||||
g_object_unref(title_layout);
|
g_object_unref(title_layout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue