mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Update only some parts of the display
This commit is contained in:
@@ -82,6 +82,11 @@ class ListView():
|
||||
else:
|
||||
return False
|
||||
|
||||
def find_update_rects(self, rects):
|
||||
for key in self.update_keys:
|
||||
object = self.screen_objects.get_touch_object(key)
|
||||
rects.append(object.rect_in_pos)
|
||||
|
||||
def render(self, surface, update_all, rects):
|
||||
if update_all:
|
||||
self.screen_objects.render(surface)
|
||||
@@ -90,7 +95,6 @@ class ListView():
|
||||
object = self.screen_objects.get_touch_object(key)
|
||||
object.update()
|
||||
object.render(surface)
|
||||
rects.append(object.rect_in_pos)
|
||||
|
||||
def touch_event(self, touch_event):
|
||||
self.must_update = True
|
||||
|
||||
Reference in New Issue
Block a user