summaryrefslogtreecommitdiff
path: root/snakegame/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'snakegame/utils.py')
-rw-r--r--snakegame/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/snakegame/utils.py b/snakegame/utils.py
index 162c0b2..0339518 100644
--- a/snakegame/utils.py
+++ b/snakegame/utils.py
@@ -3,7 +3,9 @@ try:
except ImportError:
MaybeOrderedDict = dict
-def scale_aspect((source_width, source_height), (target_width, target_height)):
+def scale_aspect(source_size, target_size):
+ source_width, source_height = source_size
+ target_width, target_height = target_size
source_aspect = float(source_width) / source_height
target_aspect = float(target_width) / target_height
if source_aspect > target_aspect: