forked from Cavemanon/SnootGame
return 1 var
This commit is contained in:
@ -22,8 +22,8 @@ init python:
|
|||||||
# (cg: string; ext: string; w: float; h: float
|
# (cg: string; ext: string; w: float; h: float
|
||||||
def cg(fname, ext, w, h):
|
def cg(fname, ext, w, h):
|
||||||
wh = {'x': w, 'y': h}
|
wh = {'x': w, 'y': h}
|
||||||
scaleFactor = box_ratio(wh)
|
scale = box_ratio(wh)
|
||||||
return im.FactorScale(fname, scaleFactor["x"], scaleFactor["y"], False)
|
return im.FactorScale(fname, scale, scale, False)
|
||||||
|
|
||||||
# Reads /images/cgs dir for all image files
|
# Reads /images/cgs dir for all image files
|
||||||
# Populates g:Gallery and galleryItems
|
# Populates g:Gallery and galleryItems
|
||||||
@ -60,9 +60,7 @@ init python:
|
|||||||
cent = PREFERRED_HEIGHT * 100.0 / float(xy['y'])
|
cent = PREFERRED_HEIGHT * 100.0 / float(xy['y'])
|
||||||
|
|
||||||
cent /= 100.0
|
cent /= 100.0
|
||||||
xy['x'] = cent
|
return cent
|
||||||
xy['y'] = cent
|
|
||||||
return xy
|
|
||||||
|
|
||||||
# Call to loading the gallery
|
# Call to loading the gallery
|
||||||
loadGallery()
|
loadGallery()
|
||||||
|
Reference in New Issue
Block a user