mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-19 00:20:09 +00:00
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:
parent
fab181fcfa
commit
42fdfb6af4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user