From 44a4fd148ad5e9a5ae6d1bc446db10d61677f1a4 Mon Sep 17 00:00:00 2001 From: Minh Ngo Date: Sun, 8 Jun 2014 07:08:12 -0400 Subject: [PATCH] Woops. 1 based indexing. --- src/tastytext.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tastytext.lua b/src/tastytext.lua index 006693f..393fecd 100644 --- a/src/tastytext.lua +++ b/src/tastytext.lua @@ -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,