Commit abe2b4cc authored by LoveEevee's avatar LoveEevee

CanvasCache: Fix clearing on small screens

parent 6e61e24d
......@@ -78,7 +78,7 @@ class CanvasCache{
this.lastW = 0
this.lastH = 0
this.map.clear()
this.ctx.clearRect(0, 0, this.canvas.width * this.scale, this.canvas.height * this.scale)
this.ctx.clearRect(0, 0, this.w, this.h)
}
clean(){
delete this.map
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment