mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 07:45:28 +00:00
show selected file
This commit is contained in:
@@ -144,5 +144,11 @@ pub fn draw_text_center<'a, S>(
|
||||
where
|
||||
S: TextRenderer<Color = <Display as DrawTarget>::Color>,
|
||||
{
|
||||
Text::with_alignment(text, Point::zero(), style, Alignment::Center).draw(display)
|
||||
Text::with_alignment(
|
||||
text,
|
||||
display.bounding_box().center(),
|
||||
style,
|
||||
Alignment::Center,
|
||||
)
|
||||
.draw(display)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user