diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-24 13:27:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-24 13:27:04 -0700 |
commit | ce31b74b10798799f03b1a9fb54dff491a1cf223 (patch) | |
tree | 3c4ff3c6fc1501fbc743a85157b2768b2c7bfbe2 /help.lua | |
parent | 89222f86a0dc3dd774ce46afaa1ba791ed65dba9 (diff) | |
download | text.love-ce31b74b10798799f03b1a9fb54dff491a1cf223.tar.gz |
infrastructure for caching LÖVE text objects
Diffstat (limited to 'help.lua')
-rw-r--r-- | help.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/help.lua b/help.lua index 2abeb00..145692f 100644 --- a/help.lua +++ b/help.lua @@ -146,11 +146,6 @@ function current_shape(State, shape) end end -_bullet_indent = nil function bullet_indent() - if _bullet_indent == nil then - local text = love.graphics.newText(love.graphics.getFont(), '* ') - _bullet_indent = text:getWidth() - end - return _bullet_indent + return App.width(to_text('* ')) end |