Merge pull request #627 from betrusted-io/modals-refactor

Fix minor issues in native build targets
This commit is contained in:
bunnie 2025-02-26 15:01:04 +08:00 committed by GitHub
commit 9309a700ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -517,6 +517,7 @@ perform the Xous firmware upgrade. This requires running manual update commands,
- graphics-server is deprecated as a dependency. Clients should now use `ux-api::minigfx` for drawing primitive dependencies. - graphics-server is deprecated as a dependency. Clients should now use `ux-api::minigfx` for drawing primitive dependencies.
- This change now hides the GAM abstraction in most cases. The GAM is used to implement windowing; for lightweight platforms that don't have the screen real estate for windows, the `canvas`/`Gid` abstractions still exist but are ignored, and applications can draw directly to the screen. - This change now hides the GAM abstraction in most cases. The GAM is used to implement windowing; for lightweight platforms that don't have the screen real estate for windows, the `canvas`/`Gid` abstractions still exist but are ignored, and applications can draw directly to the screen.
- `baosec` target in particular supports no windowing as the screen is 128x128: the UI is purely modal, where every user interaction occupies the entire screen. - `baosec` target in particular supports no windowing as the screen is 128x128: the UI is purely modal, where every user interaction occupies the entire screen.
- Modify the core message loop to use reply_and_receive_next() API
## Roadmap ## Roadmap
- Lots of testing and bug fixes - Lots of testing and bug fixes

View file

@ -34,7 +34,7 @@ mod testing;
fn draw_boot_logo(display: &mut XousDisplay) { display.blit_screen(&poweron::LOGO_MAP); } fn draw_boot_logo(display: &mut XousDisplay) { display.blit_screen(&poweron::LOGO_MAP); }
#[cfg(any(feature = "precursor", feature = "renode"))] #[cfg(any(feature = "precursor", feature = "renode"))]
fn map_fonts() -> MemoryRange { fn map_fonts() -> xous::MemoryRange {
log::trace!("mapping fonts"); log::trace!("mapping fonts");
// this maps an extra page if the total length happens to fall on a 4096-byte boundary, but this is ok // this maps an extra page if the total length happens to fall on a 4096-byte boundary, but this is ok
// because the reserved area is much larger // because the reserved area is much larger
@ -80,7 +80,7 @@ fn map_fonts() -> MemoryRange {
} }
#[cfg(any(feature = "cramium-soc"))] #[cfg(any(feature = "cramium-soc"))]
fn map_fonts() -> MemoryRange { fn map_fonts() -> xous::MemoryRange {
log::trace!("mapping fonts"); log::trace!("mapping fonts");
// this maps an extra page if the total length happens to fall on a 4096-byte boundary, but this is ok // this maps an extra page if the total length happens to fall on a 4096-byte boundary, but this is ok
// because the reserved area is much larger // because the reserved area is much larger