about summary refs log tree commit diff stats
path: root/drawing.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 /drawing.lua
parentc0df6f86a4c2cfd07b2dcd38315a22b69a68938e (diff)
downloadtext.love-6550a4c6d7d23d7769142b3d86eaa8f70f216970.tar.gz
couple of TODOs
Diffstat (limited to 'drawing.lua')
-rw-r--r--drawing.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/drawing.lua b/drawing.lua
index 3bc879e..cab5dea 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -54,6 +54,7 @@ function Drawing.draw(line)
           -- create a faint red box for the name
           love.graphics.setColor(1,0,0,0.1)
           local name_text
+          -- TODO: avoid computing name width on every repaint
           if p.name == '' then
             name_text = love.graphics.newText(love.graphics.getFont(), 'm')  -- 1em
           else