[gtk+] renderborder: Actually draw the path as one element
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] renderborder: Actually draw the path as one element
- Date: Wed, 16 Dec 2015 04:16:09 +0000 (UTC)
commit 42fdfb6af4ac3a689a4ec173a8eb2e80c2681700
Author: Benjamin Otte <otte redhat com>
Date: Wed Dec 16 05:15:04 2015 +0100
renderborder: Actually draw the path as one element
Avoids spurious lines that can sometimes be seen going towards the
center of the widget.
gtk/gtkrenderborder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index 8271b22..213d65e 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -499,9 +499,9 @@ render_frame_stroke (cairo_t *cr,
for (i = 0; i < 4; i++)
{
length += _gtk_rounded_box_guess_length (&stroke_box, i);
- _gtk_rounded_box_path_side (&stroke_box, cr, i);
}
+ _gtk_rounded_box_path (&stroke_box, cr);
gdk_cairo_set_source_rgba (cr, &colors[0]);
set_stroke_style (cr, border_width[0], stroke_style, length);
cairo_stroke (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]