summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-20 17:46:10 +0200
committerViljami Ilola <+@hix.fi>2024-03-20 17:46:10 +0200
commit975e5dca49fb09fe2f762462f1c337c0d63735bf (patch)
tree4c837b346d7b7e4a9246c1be846f48d787a327ba /src/sliceitoff/display
parent398eebe7829622c6983cb28528f2208b4d596f32 (diff)
exploding text
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r--src/sliceitoff/display/display.py4
-rw-r--r--src/sliceitoff/display/scaling.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py
index 2d6605f..06b222c 100644
--- a/src/sliceitoff/display/display.py
+++ b/src/sliceitoff/display/display.py
@@ -22,7 +22,7 @@ class Display():
print(
"DISPLAY: \n"
f" {Scaling.active = }\n"
- f" {Scaling.border = }\n"
+ f" {Scaling.borders = }\n"
f" {Scaling.factor = }\n")
def update(self, groups = None):
@@ -30,6 +30,8 @@ class Display():
self.screen.fill(Stats.bgcolor, rect=Scaling.active)
for group in groups:
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()
def __del__(self):
diff --git a/src/sliceitoff/display/scaling.py b/src/sliceitoff/display/scaling.py
index f40d33c..53a9fb1 100644
--- a/src/sliceitoff/display/scaling.py
+++ b/src/sliceitoff/display/scaling.py
@@ -58,7 +58,7 @@ class Scaling():
__class__.factor = size[1] / INTERNAL_HEIGHT
__class__.left = (size[0] - INTERNAL_WIDTH * __class__.factor) // 2
__class__.top = 0
- __class__.border = (
+ __class__.borders = (
pygame.Rect(
0,
0,