1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-04 05:42:34 +00:00
This commit is contained in:
tychovrahe 2022-11-11 21:12:13 +01:00
parent 7675adda5d
commit 3b86b3bdda

View File

@ -449,11 +449,11 @@ pub fn rect_rounded2_partial(
let x_i = p.x - icon_area.x0; let x_i = p.x - icon_area.x0;
let y_i = p.y - icon_area.y0; let y_i = p.y - icon_area.y0;
let data = icon_data[(((x_i) + (y_i * icon_width)) / 2) as usize]; let data = icon_data[(((x_i & 0xFE) + (y_i * icon_width)) / 2) as usize];
if (x_i & 0x01) == 0 { if (x_i & 0x01) == 0 {
pixeldata(icon_colortable[(data >> 4) as usize]);
} else {
pixeldata(icon_colortable[(data & 0xF) as usize]); pixeldata(icon_colortable[(data & 0xF) as usize]);
} else {
pixeldata(icon_colortable[(data >> 4) as usize]);
} }
icon_pixel = true; icon_pixel = true;
} }