[gtk+/gtk-3-0] themingengine: don't set a line width before saving the cairo context
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] themingengine: don't set a line width before saving the cairo context
- Date: Sat, 9 Apr 2011 00:34:31 +0000 (UTC)
commit dcaafb1bc109be73df79a4638e40fa6a88a33c5a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 7 15:22:18 2011 -0400
themingengine: don't set a line width before saving the cairo context
https://bugzilla.gnome.org/show_bug.cgi?id=647086
gtk/gtkthemingengine.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 6f5994d..554c96d 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1540,8 +1540,6 @@ render_background_internal (GtkThemingEngine *engine,
if (border_width > 1 &&
border_style == GTK_BORDER_STYLE_NONE)
{
- cairo_set_line_width (cr, border_width);
-
x += (gdouble) border_width / 2;
y += (gdouble) border_width / 2;
width -= border_width;
@@ -1559,6 +1557,7 @@ render_background_internal (GtkThemingEngine *engine,
return;
cairo_save (cr);
+ cairo_set_line_width (cr, border_width);
cairo_translate (cr, x, y);
running = gtk_theming_engine_state_is_running (engine, GTK_STATE_PRELIGHT, &progress);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]