1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-31 18:40:56 +00:00

src/trezor/ui/loader: fix clear

This commit is contained in:
Peter Jensen 2018-02-26 18:04:28 +01:00
parent bce101b96a
commit 375402db67

View File

@ -58,8 +58,8 @@ class Loader(ui.Widget):
def __iter__(self):
sleep = loop.sleep(1000000 // 30) # 30 fps
ui.display.bar(0, 32, 240, 240 - 80, ui.BG) # clear
ui.display.bar(0, 32, 240, 240 - 83, ui.BG) # clear
while self.is_active():
self.render()
yield sleep
ui.display.bar(0, 32, 240, 240 - 80, ui.BG) # clear
ui.display.bar(0, 32, 240, 240 - 83, ui.BG) # clear