mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Require a StrokeKind when painting rectangles with strokes (#5648)
This is a breaking change, requiring users to think about wether the stroke is inside/centered/outside the rect. When in doubt, add `egui::StrokeKind::Inside` to the function call.
This commit is contained in:
@@ -478,7 +478,7 @@ fn drop_target<R>(
|
||||
|
||||
ui.painter().set(
|
||||
background_id,
|
||||
egui::epaint::RectShape::new(rect, style.rounding, fill, stroke),
|
||||
egui::epaint::RectShape::new(rect, style.rounding, fill, stroke, egui::StrokeKind::Inside),
|
||||
);
|
||||
|
||||
egui::InnerResponse::new(ret, response)
|
||||
|
||||
Reference in New Issue
Block a user