From abe2b4ccae8de1d4528f0c9f3cac3c6044628615 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 3 Dec 2018 03:02:03 +0300 Subject: [PATCH] CanvasCache: Fix clearing on small screens --- public/src/js/canvascache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/canvascache.js b/public/src/js/canvascache.js index fd2570d..56a1f7d 100644 --- a/public/src/js/canvascache.js +++ b/public/src/js/canvascache.js @@ -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