room specific text: actually render empty lines

This commit is contained in:
Franzi 2023-12-24 12:01:28 +01:00
parent 5f98771957
commit d908c361f8

View file

@ -493,6 +493,7 @@ local function view_info(starts, ends, config, x1, y1, x2, y2)
local y = 0 local y = 0
for line in string.gmatch(info_text.."\n", "([^\n]*)\n") do for line in string.gmatch(info_text.."\n", "([^\n]*)\n") do
if line ~= "" then
local lines = wrap( local lines = wrap(
line, line,
font_text, font_size, a.width font_text, font_size, a.width
@ -511,6 +512,9 @@ local function view_info(starts, ends, config, x1, y1, x2, y2)
text(font_text, x, y, lines[idx], font_size, rgba(default_color,.8)) text(font_text, x, y, lines[idx], font_size, rgba(default_color,.8))
y = y + font_size y = y + font_size
end end
else
y = y + font_size*0.5
end
end end
for now in api.frame_between(starts, ends) do for now in api.frame_between(starts, ends) do