fix: use the right dimensions for fading

This commit is contained in:
Kazhnuz 2020-08-09 15:06:25 +02:00
parent e8e75ac4db
commit 6bac6704f5

View file

@ -119,7 +119,7 @@ function ScreenManager:fadeOut(duration, easing)
end end
function ScreenManager:drawFade() function ScreenManager:drawFade()
local w, h = self:getDimensions() local w, h = love.graphics.getDimensions()
love.graphics.setColor(0, 0, 0, self.transitionValue) love.graphics.setColor(0, 0, 0, self.transitionValue)
love.graphics.rectangle("fill", 0, 0, w, h) love.graphics.rectangle("fill", 0, 0, w, h)
utils.graphics.resetColor() utils.graphics.resetColor()