diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-15 16:31:29 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-15 16:31:29 +0100 |
| commit | b6537b2969450aa6ce2631ecbf3c340dd2e2c23a (patch) | |
| tree | f2ecb2fbd095f1a1033c8fcced181fbbc0088bb2 /draw.c | |
| parent | 36fb2b942a08d58290b1d6ea1aec6d01f8e096b7 (diff) | |
Provide temporary fix for x shape mismatch (antialiasing)
Diffstat (limited to 'draw.c')
| -rw-r--r-- | draw.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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); |
