fixup! feat(core): integrate new drawing library

cepetr/haptic-loader
cepetr 1 month ago
parent d6bdaa9332
commit 8f510e1b8d

@ -13,6 +13,7 @@ extern "C" fn screen_welcome() {
} }
#[no_mangle] #[no_mangle]
#[cfg(not(feature = "new_rendering"))]
extern "C" fn bld_continue_label(bg_color: cty::uint16_t) { extern "C" fn bld_continue_label(bg_color: cty::uint16_t) {
ModelUI::bld_continue_label(bg_color.into()); ModelUI::bld_continue_label(bg_color.into());
} }

@ -169,6 +169,7 @@ impl UIFeaturesBootloader for ModelMercuryFeatures {
show(&mut frame, true); show(&mut frame, true);
} }
#[cfg(not(feature = "new_rendering"))]
fn bld_continue_label(bg_color: Color) { fn bld_continue_label(bg_color: Color) {
display::text_center( display::text_center(
Point::new(SCREEN.width() / 2, SCREEN.height() - 5), Point::new(SCREEN.width() / 2, SCREEN.height() - 5),

@ -149,6 +149,7 @@ impl UIFeaturesBootloader for ModelTRFeatures {
show(&mut frame, true); show(&mut frame, true);
} }
#[cfg(not(feature = "new_rendering"))]
fn bld_continue_label(bg_color: Color) { fn bld_continue_label(bg_color: Color) {
display::text_center( display::text_center(
Point::new(constant::WIDTH / 2, HEIGHT - 2), Point::new(constant::WIDTH / 2, HEIGHT - 2),

@ -176,6 +176,7 @@ impl UIFeaturesBootloader for ModelTTFeatures {
show(&mut frame, true); show(&mut frame, true);
} }
#[cfg(not(feature = "new_rendering"))]
fn bld_continue_label(bg_color: Color) { fn bld_continue_label(bg_color: Color) {
display::text_center( display::text_center(
Point::new(SCREEN.width() / 2, SCREEN.height() - 5), Point::new(SCREEN.width() / 2, SCREEN.height() - 5),

@ -18,6 +18,7 @@ pub trait UIFeaturesCommon {
pub trait UIFeaturesBootloader { pub trait UIFeaturesBootloader {
fn screen_welcome(); fn screen_welcome();
#[cfg(not(feature = "new_rendering"))]
fn bld_continue_label(bg_color: Color); fn bld_continue_label(bg_color: Color);
fn screen_install_success(restart_seconds: u8, initial_setup: bool, complete_draw: bool); fn screen_install_success(restart_seconds: u8, initial_setup: bool, complete_draw: bool);

Loading…
Cancel
Save