diff options
Diffstat (limited to 'text.lua')
-rw-r--r-- | text.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/text.lua b/text.lua index 4d20deb..709a676 100644 --- a/text.lua +++ b/text.lua @@ -2,7 +2,7 @@ Text = {} -- draw a line starting from startpos to screen at y between State.left and State.right --- return the final y, and position of start of final screen line drawn +-- return y for the next line, and position of start of final screen line drawn function Text.draw(State, line_index, y, startpos) --? print('text.draw', line_index, y) local line = State.lines[line_index] @@ -50,7 +50,7 @@ function Text.draw(State, line_index, y, startpos) end end end - return y - State.line_height, final_screen_line_starting_pos + return y, final_screen_line_starting_pos end function Text.screen_line(line, line_cache, i) |