SongSel: Fix title cache

This commit is contained in:
LoveEevee
2018-12-02 20:45:03 +03:00
parent a5b60508f1
commit 6e61e24d56
2 changed files with 45 additions and 13 deletions

View File

@@ -72,6 +72,14 @@ class CanvasCache{
set(config, callback){
return this.get(config, callback, true)
}
clear(){
this.x = 0
this.y = 0
this.lastW = 0
this.lastH = 0
this.map.clear()
this.ctx.clearRect(0, 0, this.canvas.width * this.scale, this.canvas.height * this.scale)
}
clean(){
delete this.map
delete this.ctx