mirror of
https://github.com/kepler155c/opus
synced 2025-08-30 09:28:02 +00:00
canvas fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user