From 2eab8b99de90acdb9c4b95c2be28de2b89c4f452 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 10 Feb 2019 13:08:54 -0500 Subject: [PATCH] canvas fix --- sys/apis/ui/canvas.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/apis/ui/canvas.lua b/sys/apis/ui/canvas.lua index c0f62e6..55f2977 100644 --- a/sys/apis/ui/canvas.lua +++ b/sys/apis/ui/canvas.lua @@ -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