mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Add Shape::visual_bounding_rect()
This commit is contained in:
@@ -122,7 +122,7 @@ impl PaintBezier {
|
||||
let shape =
|
||||
QuadraticBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
|
||||
painter.add(epaint::RectShape::stroke(
|
||||
shape.bounding_rect(),
|
||||
shape.visual_bounding_rect(),
|
||||
0.0,
|
||||
self.bounding_box_stroke,
|
||||
));
|
||||
@@ -133,7 +133,7 @@ impl PaintBezier {
|
||||
let shape =
|
||||
CubicBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
|
||||
painter.add(epaint::RectShape::stroke(
|
||||
shape.bounding_rect(),
|
||||
shape.visual_bounding_rect(),
|
||||
0.0,
|
||||
self.bounding_box_stroke,
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user