1
0
mirror of https://github.com/kepler155c/opus synced 2025-08-30 09:28:02 +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)
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