Added support for backgrounds that are not 1280x960
This commit is contained in:
@@ -982,11 +982,7 @@ function GameMode:drawBackground()
|
||||
local id = self:getBackground()
|
||||
-- if type(id) == "number" then id = clamp(id, 0, #backgrounds) end
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
love.graphics.draw(
|
||||
fetchBackgroundAndLoop(id),
|
||||
0, 0, 0,
|
||||
0.5, 0.5
|
||||
)
|
||||
drawBackground(id)
|
||||
end
|
||||
|
||||
function GameMode:drawFrame()
|
||||
|
||||
Reference in New Issue
Block a user