From 0004d0bffa976aaee4f4d7745163f9cacb317f2a Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 29 Jun 2023 14:15:09 -0700 Subject: [PATCH] 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. --- src/libsysprof-gtk/sysprof-line-layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-gtk/sysprof-line-layer.c b/src/libsysprof-gtk/sysprof-line-layer.c index af820967..ace87af7 100644 --- a/src/libsysprof-gtk/sysprof-line-layer.c +++ b/src/libsysprof-gtk/sysprof-line-layer.c @@ -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);