summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-28 22:28:45 +0200
committerViljami Ilola <+@hix.fi>2024-03-28 22:28:45 +0200
commitf894c2fd09ed17540c49cb4083573861ded76554 (patch)
treecedbe5bab1b5f91b7e3dfb70c17f5114034e700e /src/sliceitoff/display
parentf502b21183d307fcab9b353aa18609d15c3547f1 (diff)
Show as sprite group with update
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r--src/sliceitoff/display/display.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py
index 06b222c..c2a3e44 100644
--- a/src/sliceitoff/display/display.py
+++ b/src/sliceitoff/display/display.py
@@ -28,8 +28,10 @@ class Display():
def update(self, groups = None):
""" Updates the screen: clear, blit gropus and flip """
self.screen.fill(Stats.bgcolor, rect=Scaling.active)
+ #(g.draw(self.screen) for g in groups if g)
for group in groups:
- group.draw(self.screen)
+ if group:
+ group.draw(self.screen)
self.screen.fill(Stats.bordercolor, rect=Scaling.borders[0])
self.screen.fill(Stats.bordercolor, rect=Scaling.borders[1])
pygame.display.flip()