Skip to content

Commit

Permalink
Remove pygame warning
Browse files Browse the repository at this point in the history
  • Loading branch information
anxuae committed Sep 17, 2022
1 parent 9bcbed6 commit 9a9645b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygame_imslider/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def __init__(self, size, stype=STYPE_SLIDE, per_page=1, per_move=0, focus=True,
# On Raspberry Pi, the time to update dirty sprites is long (120-180ms
# tested), increasing the treshold permits to avoid blitting full screen
# at each draw() call.
self.sprites.set_timing_treshold(200)
self.layout.set_timing_treshold(200)
self.sprites.set_timing_threshold(200)
self.layout.set_timing_threshold(200)

@property
def per_page(self):
Expand Down

0 comments on commit 9a9645b

Please sign in to comment.