mirror of
https://github.com/ksherlock/ample.git
synced 2026-01-25 19:16:42 +00:00
let Ample do the resolution scaling math.
This commit is contained in:
@@ -612,8 +612,8 @@ def find_machine_resolution(machine):
|
||||
# raster screens have a default aspect ratio of 4 : 3
|
||||
# pre-calc something like that, but integer-based.
|
||||
|
||||
hscale = round((width * 3 / 4 ) / height)
|
||||
if hscale < 1 : hscale = 1
|
||||
#hscale = round((width * 3 / 4 ) / height)
|
||||
#if hscale < 1 : hscale = 1
|
||||
|
||||
return [width, height * hscale]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user