[agx] fill_rect() stops once stroke width goes to zero
@@ -91,6 +91,7 @@ impl LikeLayerSlice for LayerSlice {
let rect_origin_offset = slice_origin_offset + (rect.origin * bpp_multiple);
if let StrokeThickness::Width(px_count) = thickness {
+ if px_count > 0 {
let top = Rect::from_parts(rect.origin, Size::new(rect.width(), px_count));
self.fill_rect(top, color, StrokeThickness::Filled);
@@ -111,6 +112,7 @@ impl LikeLayerSlice for LayerSlice {
Size::new(px_count, rect.height() - (px_count * 2)),
);
self.fill_rect(right, color, StrokeThickness::Filled);
+ }
} else {
self.track_damage(rect);
