mirror of
https://github.com/ksherlock/ample.git
synced 2026-10-24 22:02:19 +00:00
let Ample do the resolution scaling math.
This commit is contained in:
1 parent
cbf3fd5a34
commit
c1ecb40cdb
80 files changed
+90
-82
No files matched your search
@@ -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