bugfix: athmo should not blit at all, when showlist is false
This commit is contained in:
@ -24,8 +24,8 @@ class Athmos:
|
||||
return min(MAX_COUNT, len(self.filenames))
|
||||
|
||||
def update(self):
|
||||
self.surface.fill("black")
|
||||
if self.show_list:
|
||||
self.surface.fill("black")
|
||||
for i in range(self.get_display_count()):
|
||||
text = self.filenames[(i-self.index-math.floor(self.get_display_count()/2))%len(self.filenames)]
|
||||
if i == math.floor(self.get_display_count()/2):
|
||||
@ -38,5 +38,5 @@ class Athmos:
|
||||
text_surface.set_alpha(opacity)
|
||||
self.surface.blit(text_surface, ((0, self.surface.get_height()/self.get_display_count()*i)))
|
||||
|
||||
self.screen.blit(self.surface, (self.screen.get_width()/3,
|
||||
(self.screen.get_height() - self.surface.get_height())/2))
|
||||
self.screen.blit(self.surface, (self.screen.get_width()/3,
|
||||
(self.screen.get_height() - self.surface.get_height())/2))
|
||||
Reference in New Issue
Block a user