1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-22 19:27:42 +00:00

canvas fix

This commit is contained in:
kepler155c@gmail.com
2019-02-10 13:08:54 -05:00
parent fd672ac74e
commit 2eab8b99de

View File

@@ -56,6 +56,7 @@ end
function Canvas:resize(w, h) function Canvas:resize(w, h)
for i = #self.lines, h do for i = #self.lines, h do
self.lines[i] = { } self.lines[i] = { }
self:clearLine(i)
end end
while #self.lines > h do while #self.lines > h do
@@ -63,9 +64,6 @@ function Canvas:resize(w, h)
end end
if w ~= self.width then if w ~= self.width then
for i = 1, self.height do
self.lines[i] = { dirty = true }
end
self:clear() self:clear()
end end