diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-04-01 16:38:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-04-01 18:12:29 -0700 |
commit | f64f680f2b4361cece5e8746a870f986473ca502 (patch) | |
tree | f9187930631d93aff59ad9884a4482f43dc41223 /edit.lua | |
parent | 876d6298b40fc8b00bf559d4ec2d909ab1e6bc80 (diff) | |
download | lines.love-f64f680f2b4361cece5e8746a870f986473ca502.tar.gz |
no more Text allocations
Is it just my imagination, or does the app feel lighter and more fluffy?
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/edit.lua b/edit.lua index 407d8fb..e8ce5a5 100644 --- a/edit.lua +++ b/edit.lua @@ -87,7 +87,6 @@ function edit.initialize_state(top, left, right, font_height, line_height) -- c font_height = font_height, line_height = line_height, - em = App.newText(love.graphics.getFont(), 'm'), -- widest possible character width top = top, left = math.floor(left), |