From 3e3b498047c34005fd7993577ce2c6c849f4390b Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Sat, 19 Nov 2022 22:19:11 +0100 Subject: [PATCH] fixup! feat(core/rust): homescreen background --- core/embed/rust/src/ui/model_tt/component/hs_render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/model_tt/component/hs_render.rs b/core/embed/rust/src/ui/model_tt/component/hs_render.rs index 39dac79c82..5f2b7b24fe 100644 --- a/core/embed/rust/src/ui/model_tt/component/hs_render.rs +++ b/core/embed/rust/src/ui/model_tt/component/hs_render.rs @@ -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