From 753e0ef9cc4e5c585bd832ba297b9847ed4cd790 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 13 Aug 2016 21:15:09 +0200 Subject: Scaling changed --- main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index f91550c..2f1095e 100644 --- a/main.lua +++ b/main.lua @@ -13,11 +13,10 @@ end -- Should be moved to scene/camera function getScale() - return getRealScale() - --return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1) + return math.max(1, math.floor(math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180))) end function getRealScale() - return math.max(1, math.floor(math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180))) + return math.max(1, math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180)) end -- Should be moved to Sprite metaclass (non-existent yet) function newImage(path) -- cgit v1.1