1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-01 03:18:12 +00:00

fixup! feat(core/rust): homescreen background

This commit is contained in:
tychovrahe 2022-11-19 22:19:11 +01:00
parent eeb1516dd3
commit 3e3b498047

View File

@ -130,8 +130,8 @@ fn homescreen_position_text(
let icon_size = if let Some(icon) = text.icon {
let (icon_size, icon_data) = toif_info_ensure(icon, ToifFormat::GrayScaleEH);
assert!(icon_size.x < HOMESCREEN_MAX_ICON_SIZE);
assert!(icon_size.y < HOMESCREEN_MAX_ICON_SIZE);
assert!(icon_size.x <= HOMESCREEN_MAX_ICON_SIZE);
assert!(icon_size.y <= HOMESCREEN_MAX_ICON_SIZE);
let mut ctx = UzlibContext::new(icon_data, None);
unwrap!(ctx.uncompress(icon_buffer), "Decompression failed");
icon_size