This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
1 changed files with
5 additions and
1 deletions
|
|
|
@ -65,6 +65,10 @@ local string_to_line_array = function(str)
|
|
|
|
|
current = current + 1
|
|
|
|
|
tab[current] = ""
|
|
|
|
|
linechar = 1
|
|
|
|
|
elseif linechar == LINE_LENGTH + 1 then --proper newline long text
|
|
|
|
|
current = current + 1
|
|
|
|
|
tab[current] = char
|
|
|
|
|
linechar = 1
|
|
|
|
|
else
|
|
|
|
|
tab[current] = tab[current]..char
|
|
|
|
|
linechar = linechar + 1
|
|
|
|
@ -92,7 +96,7 @@ local generate_line = function(s, ypos)
|
|
|
|
|
local width = 0
|
|
|
|
|
local chars = 0
|
|
|
|
|
local printed_char_width = CHAR_WIDTH + 1
|
|
|
|
|
while chars < LINE_LENGTH and i <= #s do
|
|
|
|
|
while chars < LINE_LENGTH + 1 and i <= #s do
|
|
|
|
|
local file = nil
|
|
|
|
|
-- Get and render character
|
|
|
|
|
if charmap[s:sub(i, i)] ~= nil then
|
|
|
|
|