[gtk+] themingengine: Fix inset/outset drawing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingengine: Fix inset/outset drawing
- Date: Sun, 12 Jun 2011 21:01:01 +0000 (UTC)
commit 8b0bffc3a239d6adea3480348873fe4762ae93ec
Author: Benjamin Otte <otte redhat com>
Date: Sun Jun 12 22:07:12 2011 +0200
themingengine: Fix inset/outset drawing
gtk/gtkthemingengine.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 2e8d0ae..ae48b6d 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1721,22 +1721,22 @@ render_frame_internal (GtkThemingEngine *engine,
gdk_cairo_set_source_rgba (cr, &border_color);
else
gdk_cairo_set_source_rgba (cr, &lighter);
- cairo_move_to (cr, 0, 0);
- cairo_line_to (cr, 0, height);
- cairo_line_to (cr, min_size, height - min_size);
- cairo_line_to (cr, width - min_size, min_size);
- cairo_line_to (cr, width, 0);
+ cairo_move_to (cr, x, y);
+ cairo_line_to (cr, x, y + height);
+ cairo_line_to (cr, x + min_size, y + height - min_size);
+ cairo_line_to (cr, x + width - min_size, y + min_size);
+ cairo_line_to (cr, x + width, y);
cairo_fill (cr);
if (border_style == GTK_BORDER_STYLE_INSET)
gdk_cairo_set_source_rgba (cr, &lighter);
else
gdk_cairo_set_source_rgba (cr, &border_color);
- cairo_move_to (cr, width, height);
- cairo_line_to (cr, 0, height);
- cairo_line_to (cr, min_size, height - min_size);
- cairo_line_to (cr, width - min_size, min_size);
- cairo_line_to (cr, width, 0);
+ cairo_move_to (cr, x + width, y + height);
+ cairo_line_to (cr, x, y + height);
+ cairo_line_to (cr, x + min_size, y + height - min_size);
+ cairo_line_to (cr, x + width - min_size, y + min_size);
+ cairo_line_to (cr, x + width, y);
cairo_fill (cr);
cairo_restore (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]