renderborder: Actually draw the path as one element

Avoids spurious lines that can sometimes be seen going towards the
center of the widget.
This commit is contained in:
Benjamin Otte 2015-12-16 05:15:04 +01:00
parent fab181fcfa
commit 42fdfb6af4

View File

@ -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);