|
|
@ -215,10 +215,7 @@ module.exports = class ScreenRenderer { |
|
|
|
|
|
|
|
|
|
|
|
ctx.clearRect(fillX, fillY, fillWidth, fillHeight) |
|
|
|
ctx.clearRect(fillX, fillY, fillWidth, fillHeight) |
|
|
|
|
|
|
|
|
|
|
|
if (isDefaultBG && bg >= 0 && this.backgroundImage) { |
|
|
|
if (!isDefaultBG || bg < 0 || !this.backgroundImage) { |
|
|
|
ctx.drawImage(this.backgroundImage, fillX, fillY, fillWidth, fillHeight, |
|
|
|
|
|
|
|
fillX, fillY, fillWidth, fillHeight) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
ctx.fillRect(fillX, fillY, fillWidth, fillHeight) |
|
|
|
ctx.fillRect(fillX, fillY, fillWidth, fillHeight) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|