From 0c23da7bf8af1ed3002fa3e0e54cd6edd7bb68aa Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 11:11:02 +0200 Subject: [PATCH] Fancy graphics should be enabled at graphics=1 --- jssrc/term_screen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jssrc/term_screen.js b/jssrc/term_screen.js index 5e34bdb..8bae171 100644 --- a/jssrc/term_screen.js +++ b/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() }