mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
change font height based on target for status bar
This commit is contained in:
parent
782e94aa65
commit
a8b262af60
1 changed files with 5 additions and 1 deletions
|
|
@ -69,6 +69,10 @@ fn wrapped_main() -> ! {
|
||||||
|
|
||||||
let screensize = gfx.screen_size().expect("Couldn't get screen size");
|
let screensize = gfx.screen_size().expect("Couldn't get screen size");
|
||||||
// the status canvas is special -- there can only be one, and it is ultimately trusted
|
// the status canvas is special -- there can only be one, and it is ultimately trusted
|
||||||
|
#[cfg(feature = "cramium-soc")]
|
||||||
|
let glyph_height_hint = gfx.glyph_height_hint(GlyphStyle::Tall).expect("couldn't get glyph height");
|
||||||
|
#[cfg(not(feature = "cramium-soc"))]
|
||||||
|
let glyph_height_hint = gfx.glyph_height_hint(GlyphStyle::Cjk).expect("couldn't get glyph height");
|
||||||
let status_canvas = Canvas::new(
|
let status_canvas = Canvas::new(
|
||||||
Rectangle::new_coords(
|
Rectangle::new_coords(
|
||||||
0,
|
0,
|
||||||
|
|
@ -76,7 +80,7 @@ fn wrapped_main() -> ! {
|
||||||
screensize.x,
|
screensize.x,
|
||||||
// note: if this gets modified, the "pop" routine in gfx/backend/betrusted.rs also needs to be
|
// note: if this gets modified, the "pop" routine in gfx/backend/betrusted.rs also needs to be
|
||||||
// updated
|
// updated
|
||||||
gfx.glyph_height_hint(GlyphStyle::Cjk).expect("couldn't get glyph height") as i16 * 2,
|
glyph_height_hint as i16 * 2,
|
||||||
),
|
),
|
||||||
255,
|
255,
|
||||||
&trng,
|
&trng,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue