about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-21 16:41:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-21 16:42:22 -0700
commit6550a4c6d7d23d7769142b3d86eaa8f70f216970 (patch)
tree0ff9eb8cc603eddcf29f0e56e2e3ec7fc8046a73 /text.lua
parentc0df6f86a4c2cfd07b2dcd38315a22b69a68938e (diff)
downloadtext.love-6550a4c6d7d23d7769142b3d86eaa8f70f216970.tar.gz
couple of TODOs
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.lua b/text.lua
index 20cc782..83e185b 100644
--- a/text.lua
+++ b/text.lua
@@ -14,7 +14,7 @@ function Text.draw(line, line_width, line_index)
   if line.fragments == nil then
     Text.compute_fragments(line, line_width)
   end
-  line.screen_line_starting_pos = nil
+  line.screen_line_starting_pos = nil  -- TODO: avoid recomputing on every repaint
   if Debug_new_render then print('--') end
   for _, f in ipairs(line.fragments) do
     local frag, frag_text = f.data, f.text