Merge pull request #87 from LoveEevee/songsel-fix-title-cache

CanvasCache: Fix clearing on small screens
This commit is contained in:
Bui
2018-12-03 00:03:13 +00:00
committed by GitHub

View File

@@ -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