fixed small black line on bottom of the bar

This commit is contained in:
FelixKratz 2021-09-01 18:24:33 +02:00
parent b956eea407
commit 1fb383a6e8

View file

@ -164,6 +164,8 @@ void bar_refresh(struct bar *bar)
CGContextClearRect(bar->context, bar->frame);
CGContextSetRGBFillColor(bar->context, g_bar_manager.background_color.r, g_bar_manager.background_color.g, g_bar_manager.background_color.b, g_bar_manager.background_color.a);
CGContextSetRGBStrokeColor(bar->context, g_bar_manager.background_color.r, g_bar_manager.background_color.g, g_bar_manager.background_color.b, g_bar_manager.background_color.a);
CGContextSetLineWidth(bar->context, 0);
CGFloat radius = g_bar_manager.corner_radius;
CGFloat minx = CGRectGetMinX(bar->frame), midx = CGRectGetMidX(bar->frame), maxx = CGRectGetMaxX(bar->frame);
CGFloat miny = CGRectGetMinY(bar->frame), midy = CGRectGetMidY(bar->frame), maxy = CGRectGetMaxY(bar->frame);