Commit 78528b42 authored by LoveEevee's avatar LoveEevee

Fix results screen, clear drum asset

parent cb647770
...@@ -193,6 +193,14 @@ class Scoresheet{ ...@@ -193,6 +193,14 @@ class Scoresheet{
var winW = innerWidth var winW = innerWidth
var winH = lastHeight var winH = lastHeight
this.pixelRatio = window.devicePixelRatio || 1 this.pixelRatio = window.devicePixelRatio || 1
var resolution = settings.getItem("resolution")
if(resolution === "medium"){
this.pixelRatio *= 0.75
}else if(resolution === "low"){
this.pixelRatio *= 0.5
}else if(resolution === "lowest"){
this.pixelRatio *= 0.25
}
winW *= this.pixelRatio winW *= this.pixelRatio
winH *= this.pixelRatio winH *= this.pixelRatio
var ratioX = winW / 1280 var ratioX = winW / 1280
......
...@@ -200,7 +200,7 @@ class SettingsView{ ...@@ -200,7 +200,7 @@ class SettingsView{
delete this.items delete this.items
if(this.resolution !== settings.getItem("resolution")){ if(this.resolution !== settings.getItem("resolution")){
for(var i in assets.image){ for(var i in assets.image){
if(i.startsWith("bg_song_") || i.startsWith("bg_stage_") || i.startsWith("bg_don_")){ if(i === "touch_drum" || i.startsWith("bg_song_") || i.startsWith("bg_stage_") || i.startsWith("bg_don_")){
URL.revokeObjectURL(assets.image[i].src) URL.revokeObjectURL(assets.image[i].src)
delete assets.image[i] delete assets.image[i]
} }
......
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