minor code simplification

This commit is contained in:
Emil Ernerfeldt 2021-05-09 13:19:09 +02:00
parent a8c3deaf08
commit 5a21bc78a6

View file

@ -192,7 +192,7 @@ impl Painter {
format!("🔥 {}", text),
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);
self.add(Shape::Rect {
rect: frame_rect,