fix a minor issue in hosted mode

This commit is contained in:
bunnie 2021-08-03 16:57:54 +08:00
parent 01d6c61bb6
commit f638d01289

View file

@ -56,7 +56,7 @@ fn map_fonts() -> MemoryRange {
#[cfg(not(target_os = "none"))]
fn map_fonts() -> MemoryRange {
// does nothing
let fontlen: u32 = ((fontmap::FONT_TOTAL_LEN as u32) & 0xFFFF_F000) + 0x1000 + 8;
let fontlen: u32 = ((fontmap::FONT_TOTAL_LEN as u32 + 8) & 0xFFFF_F000) + 0x1000;
let fontregion = xous::syscall::map_memory(
None,
None,