update twm bg and fix counter screen under hdmi bug

This commit is contained in:
cuu 2018-12-18 20:03:15 +08:00
parent a7ce02be8a
commit 07060948e4
2 changed files with 6 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 KiB

After

Width:  |  Height:  |  Size: 544 KiB

View File

@ -248,11 +248,6 @@ def InspectionTeam(main_screen):
elif cur_time - everytime_keydown > time_3 and passout_time_stage == 2:
print("Power Off counting down")
main_screen._CounterScreen.Draw()
main_screen._CounterScreen.SwapAndShow()
main_screen._CounterScreen.StartCounter()
try:
f = open(config.BackLight,"r+")
except IOError:
@ -265,6 +260,10 @@ def InspectionTeam(main_screen):
f.truncate()
f.close()
main_screen._CounterScreen.Draw()
main_screen._CounterScreen.SwapAndShow()
main_screen._CounterScreen.StartCounter()
main_screen._TitleBar._InLowBackLight = 0
passout_time_stage = 4