fix: use the right dimensions for fading

This commit is contained in:
Kazhnuz Klappsthul 2020-08-09 15:06:25 +02:00
parent e8e75ac4db
commit 6bac6704f5
1 changed files with 1 additions and 1 deletions

View File

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