Skip to content

Commit 44a4fd1

Browse files
committed
Woops. 1 based indexing.
1 parent f10d169 commit 44a4fd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tastytext.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function TastyText:draw()
161161
if chunk.image then
162162
love.graphics.draw(chunk.image,x+ox,chunk.y)
163163
elseif chunk.draw then
164-
chunk.draw(chunk,x+ox,line*self.line_height)
164+
chunk.draw(chunk,x+ox,(line-1)*self.line_height)
165165
elseif chunk.string then
166166

167167
local str,new_width = self:_getSubString(chunk,

0 commit comments

Comments
 (0)