Don't draw frame with zero line width
This commit is contained in:
parent
4c4dc9aa95
commit
16e38a9a84
@ -464,6 +464,8 @@ static cairo_surface_t *render_background(cairo_surface_t *srf,
|
|||||||
else
|
else
|
||||||
height += settings.separator_height;
|
height += settings.separator_height;
|
||||||
|
|
||||||
|
if (settings.frame_width > 0)
|
||||||
|
{
|
||||||
cairo_set_source_rgb(c, cl->frame.r, cl->frame.g, cl->frame.b);
|
cairo_set_source_rgb(c, cl->frame.r, cl->frame.g, cl->frame.b);
|
||||||
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
||||||
cairo_fill(c);
|
cairo_fill(c);
|
||||||
@ -481,6 +483,7 @@ static cairo_surface_t *render_background(cairo_surface_t *srf,
|
|||||||
height -= settings.frame_width;
|
height -= settings.frame_width;
|
||||||
else
|
else
|
||||||
height -= settings.separator_height;
|
height -= settings.separator_height;
|
||||||
|
}
|
||||||
|
|
||||||
cairo_set_source_rgb(c, cl->bg.r, cl->bg.g, cl->bg.b);
|
cairo_set_source_rgb(c, cl->bg.r, cl->bg.g, cl->bg.b);
|
||||||
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user