fix: use the right dimensions for fading
This commit is contained in:
parent
e8e75ac4db
commit
6bac6704f5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue