Fix 256 FG chars

This commit is contained in:
Daniel Imms
2017-09-01 23:58:34 -07:00
parent cf7237d2a4
commit 36a723c4cc
+1 -1
View File
@@ -108,7 +108,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
if (fg < 256) {
colorIndex = fg + 1;
}
if (code < 256 && (colorIndex > 0 || fg > 255)) {
if (code < 256 && colorIndex > 0 && fg < 16) {
// ImageBitmap's draw about twice as fast as from a canvas
this._ctx.drawImage(this._charAtlas,
code * this.scaledCharWidth, colorIndex * this.scaledCharHeight, this.scaledCharWidth, this.scaledCharHeight,