mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-30 10:48:11 -07:00
generic_framebuffer: show status when ui_level!=0
Unless ui_level = 0 (invisible mode), display the status bar on framebuffer displays even when running in demo mode. Fixes #445
This commit is contained in:
@@ -179,9 +179,7 @@ pub fn update_ui(
|
|||||||
}
|
}
|
||||||
|
|
||||||
match display_level {
|
match display_level {
|
||||||
2 => {
|
2 => fb.draw_gif(img.unwrap()),
|
||||||
fb.draw_gif(img.unwrap());
|
|
||||||
}
|
|
||||||
3 => fb.draw_img(img.unwrap()),
|
3 => fb.draw_img(img.unwrap()),
|
||||||
128 => {
|
128 => {
|
||||||
fb.draw_line(Color::Cyan, 128);
|
fb.draw_line(Color::Cyan, 128);
|
||||||
@@ -190,12 +188,11 @@ pub fn update_ui(
|
|||||||
fb.draw_line(Color::Pink, 50);
|
fb.draw_line(Color::Pink, 50);
|
||||||
fb.draw_line(Color::Cyan, 25);
|
fb.draw_line(Color::Cyan, 25);
|
||||||
}
|
}
|
||||||
_ => {
|
// this branch id for ui_level 1, which is also the default if an
|
||||||
// this branch id for ui_level 1, which is also the default if an
|
// unknown value is used
|
||||||
// unknown value is used
|
_ => {}
|
||||||
fb.draw_line(display_color, 2);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
fb.draw_line(display_color, 2);
|
||||||
sleep(Duration::from_millis(1000));
|
sleep(Duration::from_millis(1000));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user