libsysprof-gtk: allow line layer to draw over edge

This is needed to avoid clippin when the line reaches the top. It's easier
to just allow it to draw to the edge than to create alternative ways of
adjusting height/width for the chart itself.
This commit is contained in:
Christian Hergert
2023-06-29 14:15:09 -07:00
parent 2147254127
commit 0004d0bffa

View File

@ -100,7 +100,7 @@ sysprof_line_layer_snapshot (GtkWidget *widget,
else
color = _sysprof_chart_layer_get_accent_bg_color ();
cr = gtk_snapshot_append_cairo (snapshot, &GRAPHENE_RECT_INIT (0, 0, width, height));
cr = gtk_snapshot_append_cairo (snapshot, &GRAPHENE_RECT_INIT (0, -1, width, height+2));
if (self->antialias)
cairo_set_antialias (cr, CAIRO_ANTIALIAS_GRAY);