Răsfoiți Sursa

Fixed image not updating correctly

Ander 11 ani în urmă
părinte
comite
e98ec00b60
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      mopidy_touchscreen/main_screen.py

+ 1 - 1
mopidy_touchscreen/main_screen.py

@@ -191,7 +191,7 @@ class MainScreen():
 
     def track_playback_ended(self, tl_track, time_position):
 	if self.image is not None:
-	    self.dirty_area.append(self.image.get_rect())
+	    self.dirty_area.append(pygame.Rect(self.base_size / 2, self.base_size + self.base_size / 2, self.image.get_rect().width,self.image.get_rect().height))
             self.image = None
 
         # There is no cover so it will use all the screen size for the text