summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index d5552d0..930a57b 100644
--- a/main.lua
+++ b/main.lua
@@ -10,6 +10,9 @@ end
function getScale()
return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1)
end
+function getRealScale()
+ return math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180)
+end
-- Require
require "world"