mirror of
https://github.com/kepler155c/opus
synced 2025-01-01 03:10:28 +00:00
canvas fix
This commit is contained in:
parent
fd672ac74e
commit
2eab8b99de
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user