From 4aad400a7ebcbf068e095b32cfb1cf0e6fdbe711 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Sat, 19 Nov 2022 22:13:23 +0100 Subject: [PATCH] fixup! feat(core/rust): homescreen background --- core/embed/rust/src/ui/model_tt/component/hs_render.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 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 580a25e131..b0360274b5 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 @@ -435,9 +435,7 @@ pub fn homescreen_blurred(data: &[u8], texts: Vec) { }; if clear_bg { - for i in &mut dest { - *i = 0; - } + dest.fill(0); } for i in 0..HOMESCREEN_IMAGE_SCALE { @@ -542,9 +540,7 @@ pub fn homescreen( }; if clear_bg { - for i in &mut dest { - *i = 0; - } + dest.fill(0); } for i in 0..HOMESCREEN_IMAGE_SCALE {