1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

Fixed reference to moved fields

This commit is contained in:
Reuh 2016-04-26 17:04:35 +02:00
parent 005f0a51b7
commit cb14434567

View file

@ -65,10 +65,10 @@ function love.draw()
-- Resize type
local winW, winH = love.graphics.getWidth(), love.graphics.getHeight()
local gameW, gameH = abstract.params.width, abstract.params.height
if abstract.params.resizeType == "auto" then
local gameW, gameH = abstract.draw.params.width, abstract.draw.params.height
if abstract.draw.params.resizeType == "auto" then
love.graphics.scale(winW/gameW, winH/gameH)
elseif abstract.params.resizeType == "center" then
elseif abstract.draw.params.resizeType == "center" then
love.graphics.translate(math.floor(winW/2-gameW/2), math.floor(winH/2-gameH/2))
end
@ -133,7 +133,7 @@ add(abstract.draw, {
end,
})
function love.resize(width, height)
if abstract.params.resizeType == "none" then
if abstract.draw.params.resizeType == "none" then
abstract.draw.width = width
abstract.draw.height = height
end