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

fix(core): fix boot flags evaluation with new rendering

[no changelog]
This commit is contained in:
tychovrahe 2024-06-01 22:18:23 +02:00 committed by TychoVrahe
parent 4e1e3bc550
commit 42e001e6d3

View File

@ -203,10 +203,10 @@ static void ui_screen_boot_click(void) {
#ifdef NEW_RENDERING
void ui_screen_boot(const vendor_header *const vhdr,
const image_header *const hdr, int wait) {
bool show_string = ((vhdr->vtrust & VTRUST_STRING) == 0);
bool show_string = ((vhdr->vtrust & VTRUST_NO_STRING) == 0);
const char *vendor_str = show_string ? vhdr->vstr : NULL;
const size_t vendor_str_len = show_string ? vhdr->vstr_len : 0;
bool red_screen = ((vhdr->vtrust & VTRUST_RED) == 0);
bool red_screen = ((vhdr->vtrust & VTRUST_NO_RED) == 0);
uint32_t vimg_len = *(uint32_t *)(vhdr->vimg + 8);
screen_boot(red_screen, vendor_str, vendor_str_len, hdr->version, vhdr->vimg,