From 6bac6704f5cd0cdbfc9ae2cec3f53b510e743d37 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 9 Aug 2020 15:06:25 +0200 Subject: [PATCH] fix: use the right dimensions for fading --- birb/core/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birb/core/screen.lua b/birb/core/screen.lua index 7c9d72f..f2a747e 100644 --- a/birb/core/screen.lua +++ b/birb/core/screen.lua @@ -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()