Fancy graphics should be enabled at graphics=1

cpsdqs/unified-input
cpsdqs 7 years ago
parent 5d2e8d845a
commit 0c23da7bf8
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 4
      jssrc/term_screen.js

@ -795,7 +795,7 @@ window.TermScreen = class TermScreen {
for (let cell of updateMap.keys()) updateRedrawMapAt(cell)
// mask to redrawing regions only
if (this.window.graphics > 1) {
if (this.window.graphics >= 1) {
ctx.save()
ctx.beginPath()
for (let y = 0; y < height; y++) {
@ -892,7 +892,7 @@ window.TermScreen = class TermScreen {
}
}
if (this.window.graphics > 1) ctx.restore()
if (this.window.graphics >= 1) ctx.restore()
if (this.window.debug && this._debug) this._debug.drawEnd()
}

Loading…
Cancel
Save