summaryrefslogtreecommitdiffhomepage
path: root/menu.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-10-06 14:43:11 +0200
committerAki <nthirtyone@gmail.com>2016-10-06 14:43:11 +0200
commit35262a7245bcd9ebf937d07ab3326655d96e5d2e (patch)
tree8c0edb0e58712dbc661d84cd988f6d2a82cb2e14 /menu.lua
parent9f1854ed3365eacec0b49017d619eb02ab0f52fb (diff)
downloadroflnauts-35262a7245bcd9ebf937d07ab3326655d96e5d2e.zip
roflnauts-35262a7245bcd9ebf937d07ab3326655d96e5d2e.tar.gz
roflnauts-35262a7245bcd9ebf937d07ab3326655d96e5d2e.tar.bz2
Fixed scaling of fullscreen menu in different ratios
Diffstat (limited to 'menu.lua')
-rw-r--r--menu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.lua b/menu.lua
index 7771f39..e24bc64 100644
--- a/menu.lua
+++ b/menu.lua
@@ -86,7 +86,7 @@ function Menu:update(dt)
end
function Menu:draw()
local scale = self.scale
- love.graphics.draw(self.background, 0, 0, 0, scale, scale)
+ love.graphics.draw(self.background, 0, 0, 0, getRealScale(), getRealScale())
love.graphics.setFont(Font)
for _,element in pairs(self.elements) do
element:draw(scale)