summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display/display.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/display/display.py')
-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()