fixed sign in text offset
This commit is contained in:
parent
8f9f2dd8f4
commit
13c2ca1558
1 changed files with 1 additions and 1 deletions
2
text.lua
2
text.lua
|
|
@ -34,7 +34,7 @@ function Text:draw()
|
|||
local w, h = self.size:coords()
|
||||
local oy = 0
|
||||
if self.align == "center" then
|
||||
oy = -h / 2 - fontsize / 2
|
||||
oy = -h / 2 + fontsize / 2
|
||||
end
|
||||
love.graphics.printf(self.text, x, y, w, self.align, 0, 1, 1, 0, oy )
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue