canvas fix

This commit is contained in:
kepler155c@gmail.com 2019-02-10 13:08:54 -05:00
parent fd672ac74e
commit 2eab8b99de
1 changed files with 1 additions and 3 deletions

View File

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