summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-28 23:34:19 +0200
committerViljami Ilola <+@hix.fi>2024-03-28 23:34:19 +0200
commit27c7e16e4bd808ce1176f18b7a78c02ff4fa88ee (patch)
treea585d5ef853a0f8ffd5000cbdc9b0c4257163e53 /src/sliceitoff/display
parentf894c2fd09ed17540c49cb4083573861ded76554 (diff)
fonts under text, more sprite.Groups
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r--src/sliceitoff/display/__init__.py2
-rw-r--r--src/sliceitoff/display/colors.py2
-rw-r--r--src/sliceitoff/display/display.py3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/sliceitoff/display/__init__.py b/src/sliceitoff/display/__init__.py
index 42c1b12..92f4d75 100644
--- a/src/sliceitoff/display/__init__.py
+++ b/src/sliceitoff/display/__init__.py
@@ -1,4 +1,4 @@
from .scaling import Scaling
from .display import Display
from .static import INTERNAL_WIDTH, INTERNAL_HEIGHT
-from .colors import EGA_COLORS
+from .colors import CGA_COLORS
diff --git a/src/sliceitoff/display/colors.py b/src/sliceitoff/display/colors.py
index 18ccfc9..f8747c0 100644
--- a/src/sliceitoff/display/colors.py
+++ b/src/sliceitoff/display/colors.py
@@ -1,6 +1,6 @@
""" text.colors - colors are defined here """
-EGA_COLORS=[
+CGA_COLORS=[
(0x00,0x00,0x00,0xFF),
(0x00,0x00,0xAA,0xFF),
(0x00,0xAA,0x00,0xFF),
diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py
index c2a3e44..2febdc2 100644
--- a/src/sliceitoff/display/display.py
+++ b/src/sliceitoff/display/display.py
@@ -30,8 +30,7 @@ class Display():
self.screen.fill(Stats.bgcolor, rect=Scaling.active)
#(g.draw(self.screen) for g in groups if g)
for group in groups:
- if group:
- group.draw(self.screen)
+ 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()