diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-08-26 14:12:38 +0200 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-08-26 14:12:38 +0200 |
commit | c179f44ba481c73158fa72d658cbd9fed046dcdd (patch) | |
tree | 48513ec25683841fad77f51a48ce91f0f47deaf9 /font_lib/init.lua | |
parent | d59c475162da02695a85ebd92a44e53129aa8be3 (diff) |
Release 2017-08-26
Diffstat (limited to 'font_lib/init.lua')
-rw-r--r-- | font_lib/init.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/font_lib/init.lua b/font_lib/init.lua index b3b3222..9dd6908 100644 --- a/font_lib/init.lua +++ b/font_lib/init.lua @@ -62,8 +62,7 @@ end function font_lib.get_line_width(text) local char local width = 0 - - p=0 + local p=0 while p < #text do char, p = get_next_char(text, p) @@ -82,10 +81,8 @@ end function font_lib.make_line_texture(text, texturew, x, y) local char - local texture = "" - - p=0 + local p=0 while p < #text do char, p = get_next_char(text, p) |