diff --git a/pygame_imslider/__init__.py b/pygame_imslider/__init__.py index 91e5ce3..71962a1 100755 --- a/pygame_imslider/__init__.py +++ b/pygame_imslider/__init__.py @@ -5,4 +5,4 @@ from .slider import ImSlider, STYPE_SLIDE, STYPE_LOOP, STYPE_FADE from .renderers import ImSliderRenderer -__version__ = '1.0.1' +__version__ = '1.0.2' diff --git a/pygame_imslider/slider.py b/pygame_imslider/slider.py index bcd887e..34413a7 100755 --- a/pygame_imslider/slider.py +++ b/pygame_imslider/slider.py @@ -84,7 +84,7 @@ def __init__(self, size, stype=STYPE_SLIDE, per_page=1, per_move=0, focus=True, self.set_size(*size) - # On Raspberry Pi, the time to update dirty sprites is long (120-180ms + # On Raspberry Pi, the time to update dirty sprites is long (200-300ms # tested), increasing the treshold permits to avoid blitting full screen # at each draw() call. self.sprites.set_timing_threshold(600) @@ -283,6 +283,8 @@ def update(self, events): dt = self.clock.tick() / 1000 # Amount of seconds between each loop. update_eraser = self.background.image is None self.sprites.update(events, dt) + # Synchronize update method between groups + self.layout._use_update = self.sprites._use_update if self.layout.is_animated(): self.layout.update(events, dt)