mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Fix sharp corners for rectangles with StrokeKind != Inside (#5675)
Oops!
This commit is contained in:
@@ -93,6 +93,19 @@ impl TessellationTest {
|
||||
)
|
||||
.with_blur_width(5.0),
|
||||
),
|
||||
(
|
||||
"Additive rectangle",
|
||||
RectShape::new(
|
||||
sized([24.0, 12.0]),
|
||||
0.0,
|
||||
egui::Color32::LIGHT_RED.additive().linear_multiply(0.025),
|
||||
(
|
||||
1.0,
|
||||
egui::Color32::LIGHT_BLUE.additive().linear_multiply(0.1),
|
||||
),
|
||||
StrokeKind::Outside,
|
||||
),
|
||||
),
|
||||
];
|
||||
|
||||
for (_name, shape) in &mut shapes {
|
||||
|
||||
Reference in New Issue
Block a user