Draw nothing if backgroundImage is true

pull/1/head
cpsdqs 7 years ago
parent 7fbe736ce2
commit f28fc5094c
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 5
      js/term/screen_renderer.js

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

Loading…
Cancel
Save