summaryrefslogtreecommitdiffhomepage
path: root/not/Menu.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-31 22:20:41 +0200
committerAki <nthirtyone@gmail.com>2017-07-31 22:20:41 +0200
commit9aa820bf100845da2024bf3af9e802c90b3a6b51 (patch)
treebda923b078103be78526a8492c07422b9c420891 /not/Menu.lua
parenta5dfe50a4f4dd64ef0f54e1caaef8a2672ff8c76 (diff)
downloadroflnauts-9aa820bf100845da2024bf3af9e802c90b3a6b51.zip
roflnauts-9aa820bf100845da2024bf3af9e802c90b3a6b51.tar.gz
roflnauts-9aa820bf100845da2024bf3af9e802c90b3a6b51.tar.bz2
Fixed scaling issues on display change
Diffstat (limited to 'not/Menu.lua')
-rw-r--r--not/Menu.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/not/Menu.lua b/not/Menu.lua
index b835777..b7fc7ed 100644
--- a/not/Menu.lua
+++ b/not/Menu.lua
@@ -3,7 +3,6 @@
-- I do know that model I used here and in `World` loading configuration files is not flawless but I did not want to rewrite `World`s one but wanted to keep things similar at least in project scope.
Menu = require "not.Scene":extends()
-Menu.scale = getScale()
Menu.elements = --[[{not.Element}]]nil
Menu.active = 1
Menu.music = --[[not.Music]]nil
@@ -79,7 +78,7 @@ function Menu:update (dt)
end
end
function Menu:draw ()
- local scale = self.scale
+ local scale = getScale()
local scaler = getRealScale()
love.graphics.setFont(Font)
for _,element in pairs(self.elements) do