draw: lazy_static initialize fonts

This commit is contained in:
Kenny Levinsen
2019-08-06 00:09:41 +02:00
parent 11fd9a79c3
commit e63a28abb7
9 changed files with 36 additions and 42 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ impl ModuleImpl for UpowerBattery {
let inner = self.inner.lock().unwrap();
draw_text(
ROBOTO_REGULAR,
&ROBOTO_REGULAR,
&mut buf.subdimensions((0, 0, 128, 24))?,
bg,
&text_color,