forked from SilverStudioGames/WTS
Merge branch 'current' into dev
This commit is contained in:
commit
9b5fb5c419
@ -25,10 +25,10 @@ init python:
|
|||||||
size = surf.get_size()
|
size = surf.get_size()
|
||||||
box = tuple(surf.get_bounding_rect())
|
box = tuple(surf.get_bounding_rect())
|
||||||
|
|
||||||
if size[0] != 1010:
|
if "/clothes/" in path and size[0] != 1010:
|
||||||
ratio = size[0] / 1010
|
ratio = size[0] / 1010
|
||||||
box = tuple(v/ratio for v in box)
|
box = tuple(v/ratio for v in box)
|
||||||
whitespace_dict[path] = box
|
whitespace_dict[path] = tuple(map(int, box))
|
||||||
return box
|
return box
|
||||||
|
|
||||||
def crop_image_zoom(path, xsize, ysize, grayscale=False):
|
def crop_image_zoom(path, xsize, ysize, grayscale=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user