From 12dcaf1e7a69b2b80d680aa49516e187722e09d9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 1 Oct 2024 18:44:02 -0400 Subject: [PATCH] Don't draw transparent fillers Repeat nodes take child bounds that let us achieve the desired spacing without resorting to transparent fillers. --- gtk/gskpango.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gskpango.c b/gtk/gskpango.c index d332dc6365..b252610de3 100644 --- a/gtk/gskpango.c +++ b/gtk/gskpango.c @@ -211,7 +211,7 @@ gsk_pango_renderer_draw_error_underline (PangoRenderer *renderer, gtk_snapshot_push_repeat (crenderer->snapshot, &GRAPHENE_RECT_INIT (xx, yy, ww, hh), - NULL); + &GRAPHENE_RECT_INIT (xx, yy, 1.5 * hh, hh)); gsk_rounded_rect_init_from_rect (&dot, &GRAPHENE_RECT_INIT (xx, yy, hh, hh), @@ -220,9 +220,6 @@ gsk_pango_renderer_draw_error_underline (PangoRenderer *renderer, gtk_snapshot_push_rounded_clip (crenderer->snapshot, &dot); gtk_snapshot_append_color2 (crenderer->snapshot, &color, &dot.bounds); gtk_snapshot_pop (crenderer->snapshot); - gtk_snapshot_append_color2 (crenderer->snapshot, - &GDK_COLOR_SRGB (0, 0, 0, 0), - &GRAPHENE_RECT_INIT (xx, yy, 1.5 * hh, hh)); gdk_color_finish (&color);