mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-12-15 21:19:08 +00:00
Fixed reference to moved fields
This commit is contained in:
parent
005f0a51b7
commit
cb14434567
1 changed files with 4 additions and 4 deletions
|
|
@ -65,10 +65,10 @@ function love.draw()
|
||||||
|
|
||||||
-- Resize type
|
-- Resize type
|
||||||
local winW, winH = love.graphics.getWidth(), love.graphics.getHeight()
|
local winW, winH = love.graphics.getWidth(), love.graphics.getHeight()
|
||||||
local gameW, gameH = abstract.params.width, abstract.params.height
|
local gameW, gameH = abstract.draw.params.width, abstract.draw.params.height
|
||||||
if abstract.params.resizeType == "auto" then
|
if abstract.draw.params.resizeType == "auto" then
|
||||||
love.graphics.scale(winW/gameW, winH/gameH)
|
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))
|
love.graphics.translate(math.floor(winW/2-gameW/2), math.floor(winH/2-gameH/2))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ add(abstract.draw, {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
function love.resize(width, height)
|
function love.resize(width, height)
|
||||||
if abstract.params.resizeType == "none" then
|
if abstract.draw.params.resizeType == "none" then
|
||||||
abstract.draw.width = width
|
abstract.draw.width = width
|
||||||
abstract.draw.height = height
|
abstract.draw.height = height
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue