1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Better debug rendering of expanded region

This commit is contained in:
Emil Ernerfeldt
2020-05-08 17:10:25 +02:00
parent ec93f20604
commit 570215df9a

View File

@@ -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,