forked from AuroraMiddleware/gtk
themingengine: don't set a line width before saving the cairo context
https://bugzilla.gnome.org/show_bug.cgi?id=647086
This commit is contained in:
parent
35479be43e
commit
6261b8434f
@ -1550,8 +1550,6 @@ render_background_internal (GtkThemingEngine *engine,
|
|||||||
if (border_width > 1 &&
|
if (border_width > 1 &&
|
||||||
border_style == GTK_BORDER_STYLE_NONE)
|
border_style == GTK_BORDER_STYLE_NONE)
|
||||||
{
|
{
|
||||||
cairo_set_line_width (cr, border_width);
|
|
||||||
|
|
||||||
x += (gdouble) border_width / 2;
|
x += (gdouble) border_width / 2;
|
||||||
y += (gdouble) border_width / 2;
|
y += (gdouble) border_width / 2;
|
||||||
width -= border_width;
|
width -= border_width;
|
||||||
@ -1569,6 +1567,7 @@ render_background_internal (GtkThemingEngine *engine,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
cairo_save (cr);
|
cairo_save (cr);
|
||||||
|
cairo_set_line_width (cr, border_width);
|
||||||
cairo_translate (cr, x, y);
|
cairo_translate (cr, x, y);
|
||||||
|
|
||||||
running = gtk_theming_engine_state_is_running (engine, GTK_STATE_PRELIGHT, &progress);
|
running = gtk_theming_engine_state_is_running (engine, GTK_STATE_PRELIGHT, &progress);
|
||||||
|
Loading…
Reference in New Issue
Block a user