fix: make text shadow follow its opacity

This commit is contained in:
Kazhnuz 2021-04-18 18:29:20 +02:00
parent 2bce318b96
commit 8e277d0505

View file

@ -140,7 +140,7 @@ function Font:applyFilter(text, x, y, limit, align, r, sx, sy, ox, oy, kx, ky)
end
function Font:applyFilterShadow(text, x, y, limit, align, r, sx, sy, ox, oy, kx, ky)
love.graphics.setColor(0, 0, 0, 1)
love.graphics.setColor(0, 0, 0, self.color.a)
self:printf(text, x+1, y+1, limit, align, r, sx, sy, ox, oy, kx, ky)
utils.graphics.resetColor()
end