Fix sponsor splash

sammachin-gprs
Marek Ventur 2018-09-01 19:09:12 +01:00
parent e683d50dc5
commit 760e203456
1 changed files with 8 additions and 5 deletions

View File

@ -15,13 +15,16 @@ ___bootstrapped___ = True
import ugfx
from homescreen import *
import time
from tilda import Buttons
# We ❤️ our sponsors
init()
ugfx.display_image(0, 0, "shared/sponsors.png")
wait = 5
while wait:
wait-=1
sleep_or_exit(0.5)
wait_until = time.ticks_ms() + 3000
while time.ticks_ms() < wait_until:
time.sleep(0.1)
if Buttons.is_pressed(Buttons.BTN_A) or Buttons.is_pressed(Buttons.BTN_B) or Buttons.is_pressed(Buttons.BTN_Menu):
break
# Padding for name
intro_height = 30
@ -37,7 +40,7 @@ logo_width = 56
max_name = 8
# Background stuff
init()
ugfx.clear(ugfx.html_color(0x800080))
# Colour stuff