resizing fixes

This commit is contained in:
2025-10-25 10:59:55 -07:00
parent b1da7a3337
commit 85e19133a3

View File

@@ -253,7 +253,8 @@ function lib.create(name, w, h, x, y, do_not_add)
for xi = 1, t.w do for xi = 1, t.w do
init_col(xi) init_col(xi)
for yy = 1, t.h - n do for yy = 1, t.h - n do
local dst, src = t.buffer[xi][yy], t.buffer[xi][yy + n] if not t.buffer[xi][yy] then t.buffer[xi][yy] = { char = " ", tc = t.textColor, bc = t.bgColor } end
local dst, src = t.buffer[xi][yy], (t.buffer[xi][yy + n] or { char = " ", tc = t.textColor, bc = t.bgColor })
dst.char, dst.tc, dst.bc = src.char, src.tc, src.bc dst.char, dst.tc, dst.bc = src.char, src.tc, src.bc
end end
for yy = t.h - n + 1, t.h do for yy = t.h - n + 1, t.h do