fix tick value
This commit is contained in:
+3
-3
@@ -191,9 +191,9 @@ def draw_frame(matrix):
|
|||||||
draw_text_overlay(matrix.canvas, ordered, scroll_x)
|
draw_text_overlay(matrix.canvas, ordered, scroll_x)
|
||||||
|
|
||||||
# advance scroll every N ticks
|
# advance scroll every N ticks
|
||||||
_tick += 1
|
tick += 1
|
||||||
if _tick >= frames_per_tick:
|
if tick >= frames_per_tick:
|
||||||
_tick = 0
|
tick = 0
|
||||||
next_x = scroll_x + scroll_speed
|
next_x = scroll_x + scroll_speed
|
||||||
if next_x >= total_scroll_width:
|
if next_x >= total_scroll_width:
|
||||||
matrix.next_slide("fantasy")
|
matrix.next_slide("fantasy")
|
||||||
|
|||||||
Reference in New Issue
Block a user