mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Better debug rendering of expanded region
This commit is contained in:
@@ -325,7 +325,7 @@ impl Region {
|
|||||||
fill_color: None,
|
fill_color: None,
|
||||||
});
|
});
|
||||||
|
|
||||||
let color = color::srgba(255, 0, 0, 128);
|
let color = color::srgba(200, 0, 0, 255);
|
||||||
let width = 2.5;
|
let width = 2.5;
|
||||||
|
|
||||||
if too_wide {
|
if too_wide {
|
||||||
@@ -334,6 +334,11 @@ impl Region {
|
|||||||
color,
|
color,
|
||||||
width,
|
width,
|
||||||
));
|
));
|
||||||
|
self.add_paint_cmd(PaintCmd::line_segment(
|
||||||
|
(rect.left_center(), rect.right_center()),
|
||||||
|
color,
|
||||||
|
width,
|
||||||
|
));
|
||||||
self.add_paint_cmd(PaintCmd::line_segment(
|
self.add_paint_cmd(PaintCmd::line_segment(
|
||||||
(rect.right_top(), rect.right_bottom()),
|
(rect.right_top(), rect.right_bottom()),
|
||||||
color,
|
color,
|
||||||
@@ -347,6 +352,11 @@ impl Region {
|
|||||||
color,
|
color,
|
||||||
width,
|
width,
|
||||||
));
|
));
|
||||||
|
self.add_paint_cmd(PaintCmd::line_segment(
|
||||||
|
(rect.center_top(), rect.center_bottom()),
|
||||||
|
color,
|
||||||
|
width,
|
||||||
|
));
|
||||||
self.add_paint_cmd(PaintCmd::line_segment(
|
self.add_paint_cmd(PaintCmd::line_segment(
|
||||||
(rect.left_bottom(), rect.right_bottom()),
|
(rect.left_bottom(), rect.right_bottom()),
|
||||||
color,
|
color,
|
||||||
|
|||||||
Reference in New Issue
Block a user