mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-02 16:26:19 +00:00
fix(core/prodtest): fix touch draw test
[no changelog]
This commit is contained in:
parent
aa52eef34f
commit
511a4f3b93
@ -147,19 +147,16 @@ impl ProdtestUI for UIBolt {
|
|||||||
match ev {
|
match ev {
|
||||||
TouchStart(p) => {
|
TouchStart(p) => {
|
||||||
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(3, 3)))
|
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))
|
.with_bg(Color::rgb(0, 255, 0))
|
||||||
.render(target);
|
.render(target);
|
||||||
}
|
}
|
||||||
TouchMove(p) => {
|
TouchMove(p) => {
|
||||||
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(1, 1)))
|
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(1, 1)))
|
||||||
.with_fg(Color::white())
|
|
||||||
.with_bg(Color::white())
|
.with_bg(Color::white())
|
||||||
.render(target);
|
.render(target);
|
||||||
}
|
}
|
||||||
TouchEnd(p) => {
|
TouchEnd(p) => {
|
||||||
shape::Bar::new(Rect::from_center_and_size(*p, Offset::new(3, 3)))
|
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))
|
.with_bg(Color::rgb(255, 0, 0))
|
||||||
.render(target);
|
.render(target);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user