fix: make text shadow follow its opacity
This commit is contained in:
parent
2bce318b96
commit
8e277d0505
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue