diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-17 07:58:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-17 08:00:56 -0700 |
commit | 038f06a342acfbd4c8e8aa1519b49361d8dc1bbc (patch) | |
tree | 7a4897b096773a5b02f6eff93a714a7268330b8c /text.lua | |
parent | 0ac44f0756fe507ade41296b6e0cf3df9eab4863 (diff) | |
download | text.love-038f06a342acfbd4c8e8aa1519b49361d8dc1bbc.tar.gz |
drop some redundant args from Text.draw
Diffstat (limited to 'text.lua')
-rw-r--r-- | text.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/text.lua b/text.lua index d4bfbc2..fa7b0ea 100644 --- a/text.lua +++ b/text.lua @@ -9,12 +9,13 @@ require 'text_tests' -- return values: -- y coordinate drawn until in px -- position of start of final screen line drawn -function Text.draw(State, line, line_index, top) +function Text.draw(State, line_index) --? print('text.draw', line_index) App.color(Text_color) + local line = State.lines[line_index] -- wrap long lines local x = State.left - local y = top + local y = line.starty local pos = 1 local screen_line_starting_pos = 1 if line.fragments == nil then |