From 9aa820bf100845da2024bf3af9e802c90b3a6b51 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 31 Jul 2017 22:20:41 +0200 Subject: Fixed scaling issues on display change --- not/Menu.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'not/Menu.lua') 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 -- cgit v1.1