diff options
author | Benjamin Otte <otte@redhat.com> | 2011-06-12 22:07:12 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-12 23:00:24 +0200 |
commit | 8b0bffc3a239d6adea3480348873fe4762ae93ec (patch) | |
tree | 40ac338204ceb159e67da99985ba215b01486256 /gtk/gtkthemingengine.c | |
parent | 7c0e18f8a680fd878827c501accf45145c51ffd5 (diff) | |
download | gtk+-8b0bffc3a239d6adea3480348873fe4762ae93ec.tar.gz |
themingengine: Fix inset/outset drawing
Diffstat (limited to 'gtk/gtkthemingengine.c')
-rw-r--r-- | gtk/gtkthemingengine.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 2e8d0ae47e..ae48b6d682 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); |