diff options
Diffstat (limited to 'src/sliceitoff/images/images.py')
-rw-r--r-- | src/sliceitoff/images/images.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sliceitoff/images/images.py b/src/sliceitoff/images/images.py index 102ca0f..b2d93a2 100644 --- a/src/sliceitoff/images/images.py +++ b/src/sliceitoff/images/images.py @@ -1,11 +1,13 @@ import os import pygame +from display import Scaling + DEBUG = os.getenv("DEBUG") images = {} -def load_images(scale): +def load_images(): if not images: with open("assets/images.lst") as image_list_file: for line in image_list_file: @@ -16,4 +18,4 @@ def load_images(scale): image = pygame.image.load(filename) images[name] = pygame.transform.smoothscale_by( pygame.Surface.convert_alpha(image), - scale) + Scaling.factor) |