1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

fixup! feat(core): integrate new drawing library

This commit is contained in:
cepetr 2024-04-25 07:39:54 +02:00
parent d6bdaa9332
commit 8f510e1b8d
5 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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