mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
Update only some parts of the display
This commit is contained in:
@@ -8,9 +8,7 @@ from ..graphic_utils import ListView
|
||||
class LibraryScreen(BaseScreen):
|
||||
def __init__(self, size, base_size, manager, fonts):
|
||||
BaseScreen.__init__(self, size, base_size, manager, fonts)
|
||||
self.list_view = ListView((0, 0), (
|
||||
self.size[0], self.size[1] -
|
||||
self.base_size), self.base_size, self.fonts['base'])
|
||||
self.list_view = ListView((0, 0), self.size, self.base_size, self.fonts['base'])
|
||||
self.directory_list = []
|
||||
self.current_directory = None
|
||||
self.library = None
|
||||
@@ -40,6 +38,9 @@ class LibraryScreen(BaseScreen):
|
||||
def should_update(self):
|
||||
return self.list_view.should_update()
|
||||
|
||||
def find_update_rects(self, rects):
|
||||
return self.list_view.find_update_rects(rects)
|
||||
|
||||
def update(self, screen, update_type, rects):
|
||||
update_all = (update_type == BaseScreen.update_all)
|
||||
self.list_view.render(screen, update_all, rects)
|
||||
|
||||
Reference in New Issue
Block a user