Skip to content

Commit

Permalink
Woops. 1 based indexing.
Browse files Browse the repository at this point in the history
  • Loading branch information
markandgo committed Jun 8, 2014
1 parent f10d169 commit 44a4fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tastytext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function TastyText:draw()
if chunk.image then
love.graphics.draw(chunk.image,x+ox,chunk.y)
elseif chunk.draw then
chunk.draw(chunk,x+ox,line*self.line_height)
chunk.draw(chunk,x+ox,(line-1)*self.line_height)
elseif chunk.string then

local str,new_width = self:_getSubString(chunk,
Expand Down

0 comments on commit 44a4fd1

Please sign in to comment.