1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-22 22:48:20 +00:00

fixup! feat(core/rust): homescreen background

This commit is contained in:
tychovrahe 2022-11-19 22:21:20 +01:00
parent 3e3b498047
commit 1d50a04cad

View File

@ -173,7 +173,7 @@ fn homescreen_line_blurred(
icon_data: &mut [u8], icon_data: &mut [u8],
text_buffer: &mut BufferText, text_buffer: &mut BufferText,
text_info: HomescreenTextInfo, text_info: HomescreenTextInfo,
totals: [[u16; HOMESCREEN_IMAGE_SIZE as usize]; COLORS], totals: &[[u16; HOMESCREEN_IMAGE_SIZE as usize]; COLORS],
y: i16, y: i16,
) -> bool { ) -> bool {
let t_buffer = unsafe { get_buffer_4bpp((y & 0x1) as u16, true) }; let t_buffer = unsafe { get_buffer_4bpp((y & 0x1) as u16, true) };
@ -443,7 +443,7 @@ pub fn homescreen_blurred(data: &[u8], texts: Vec<HomescreenText, 4>) {
&mut icon_data, &mut icon_data,
text_buffer, text_buffer,
text_info, text_info,
avgs_totals, &avgs_totals,
HOMESCREEN_IMAGE_SCALE * y + i, HOMESCREEN_IMAGE_SCALE * y + i,
); );