scenes/levels: fix background color

This commit is contained in:
Kazhnuz 2019-03-01 18:32:45 +01:00
parent 293e0e1c45
commit 0472d56397
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ function Level:drawMap()
end
function Level:drawBackgroundColor()
local r, g, b = self.backcolor
love.graphics.setColor(r, g, b)
local r, g, b = self.backcolor[1], self.backcolor[2], self.backcolor[3]
love.graphics.setColor(r/256, g/256, b/256)
love.graphics.rectangle("fill", 0, 0, 480, 272)
utils.graphics.resetColor()
end