resizing fixes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user