whoooops lol
This commit is contained in:
+2
-2
@@ -418,11 +418,11 @@ def run():
|
|||||||
current_preferred_game = 0
|
current_preferred_game = 0
|
||||||
else:
|
else:
|
||||||
current_page = 0
|
current_page = 0
|
||||||
current_page = (current_page + 4) % max(len(games), 1)
|
|
||||||
|
|
||||||
|
|
||||||
print('Drawing all games')
|
print('Drawing all games')
|
||||||
draw_all_games(canvas, games, current_page)
|
draw_all_games(canvas, games, current_page)
|
||||||
|
current_page = (current_page + 4) % max(len(games), 1)
|
||||||
else:
|
else:
|
||||||
canvas.Clear()
|
canvas.Clear()
|
||||||
|
|
||||||
@@ -432,7 +432,7 @@ def run():
|
|||||||
graphics.DrawText(canvas, font, 10, 22, graphics.Color(*Colors.RED.value), "No games today")
|
graphics.DrawText(canvas, font, 10, 22, graphics.Color(*Colors.RED.value), "No games today")
|
||||||
|
|
||||||
canvas = matrix.SwapOnVSync(canvas)
|
canvas = matrix.SwapOnVSync(canvas)
|
||||||
sleep(10)
|
sleep(0.03)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run()
|
run()
|
||||||
|
|||||||
Reference in New Issue
Block a user