Fix Main Screen

This commit is contained in:
9and3r
2015-05-23 15:30:01 +02:00
parent eefc6c40ef
commit fd25b7cf86
2 changed files with 11 additions and 12 deletions

View File

@@ -41,11 +41,10 @@ class DynamicBackground:
self.update = True
@staticmethod
def get_aspect_scale_size(img, size):
def get_aspect_scale_size(img, new_size):
size = img.get_size()
aspect_x = size[0] / float(size[0])
aspect_y = size[1] / float(size[1])
aspect_x = new_size[0] / float(size[0])
aspect_y = new_size[1] / float(size[1])
if aspect_x > aspect_y:
aspect = aspect_x
else: