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
@@ -104,7 +104,7 @@ impl ModuleImpl for Backlight {
buf.memset(bg);
let c = Color::new(1.0, 1.0, 1.0, 1.0);
draw_text(
ROBOTO_REGULAR,
&ROBOTO_REGULAR,
&mut buf.subdimensions((0, 0, 128, 24))?,
bg,
&c,