Better debug rendering of expanded region
This commit is contained in:
parent
ec93f20604
commit
570215df9a
1 changed files with 11 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue