mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
minor code simplification
This commit is contained in:
@@ -192,7 +192,7 @@ impl Painter {
|
|||||||
format!("🔥 {}", text),
|
format!("🔥 {}", text),
|
||||||
f32::INFINITY,
|
f32::INFINITY,
|
||||||
);
|
);
|
||||||
let rect = Align2::LEFT_TOP.anchor_rect(Rect::from_min_size(pos, galley.size));
|
let rect = Rect::from_min_size(pos, galley.size);
|
||||||
let frame_rect = rect.expand(2.0);
|
let frame_rect = rect.expand(2.0);
|
||||||
self.add(Shape::Rect {
|
self.add(Shape::Rect {
|
||||||
rect: frame_rect,
|
rect: frame_rect,
|
||||||
|
|||||||
Reference in New Issue
Block a user