Better debug rendering of expanded region
@@ -325,7 +325,7 @@ impl Region {
fill_color: None,
});
- let color = color::srgba(255, 0, 0, 128);
+ let color = color::srgba(200, 0, 0, 255);
let width = 2.5;
if too_wide {
@@ -334,6 +334,11 @@ impl Region {
color,
width,
));
+ self.add_paint_cmd(PaintCmd::line_segment(
+ (rect.left_center(), rect.right_center()),
+ color,
+ width,
+ ));
self.add_paint_cmd(PaintCmd::line_segment(
(rect.right_top(), rect.right_bottom()),
color,
@@ -347,6 +352,11 @@ impl Region {
color,
width,
));
+ self.add_paint_cmd(PaintCmd::line_segment(
+ (rect.center_top(), rect.center_bottom()),
+ color,
+ width,
+ ));
self.add_paint_cmd(PaintCmd::line_segment(
(rect.left_bottom(), rect.right_bottom()),
color,
