1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-01 15:52:02 +00:00

fix(core/prodtest): fix touch draw test

[no changelog]
This commit is contained in:
tychovrahe 2025-02-28 12:40:36 +01:00 committed by TychoVrahe
parent aa52eef34f
commit 511a4f3b93

View File

@ -147,19 +147,16 @@ impl ProdtestUI for UIBolt {
match ev {
TouchStart(p) => {
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(3, 3)))
.with_fg(Color::rgb(0, 255, 0))
.with_bg(Color::rgb(0, 255, 0))
.render(target);
}
TouchMove(p) => {
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(1, 1)))
.with_fg(Color::white())
.with_bg(Color::white())
.render(target);
}
TouchEnd(p) => {
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(3, 3)))
.with_fg(Color::rgb(255, 0, 0))
.with_bg(Color::rgb(255, 0, 0))
.render(target);
}