From b6537b2969450aa6ce2631ecbf3c340dd2e2c23a Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 15 Nov 2023 16:31:29 +0100 Subject: Provide temporary fix for x shape mismatch (antialiasing) --- draw.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 0eac18a..07aecb3 100644 --- a/draw.c +++ b/draw.c @@ -26,9 +26,18 @@ void draw(Window *win) double degree = M_PI / 180.0; cairo_set_source_rgb(cr, 0.3, 0.3, 0.3); - cairo_arc(cr, radius, radius, radius, 90.0 * degree, 270 * degree); - cairo_arc(cr, width - radius, radius, radius, 270 * degree, 450 * degree); - cairo_fill(cr); + + // TODO: Here we should paint the shape of the bar, however there is a problem with the surface + // painted in the pixmap to mask the window shape in window_paint_corners. + // + // This is caused by some difference between the two shapes (that should technically be the same) + // which causes a mismatch between the two layers and leaves some black pixels visible + + //cairo_arc(cr, radius, radius, radius, 90.0 * degree, 270 * degree); + //cairo_arc(cr, width - radius, radius, radius, 270 * degree, 450 * degree); + //cairo_fill(cr); + + cairo_paint(cr); cairo_set_line_width(cr, 1 * scale); -- cgit v1.2.3