Draw from charatlas without changing scale

Fixes #1050
This commit is contained in:
Daniel Imms
2017-10-10 22:19:48 -07:00
parent 058de25977
commit 09c9cb4508
+1 -1
View File
@@ -243,7 +243,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
const charAtlasCellHeight = this._scaledCharHeight + CHAR_ATLAS_CELL_SPACING;
this._ctx.drawImage(this._charAtlas,
code * charAtlasCellWidth, colorIndex * charAtlasCellHeight, charAtlasCellWidth, this._scaledCharHeight,
x * this._scaledCharWidth, y * this._scaledLineHeight + this._scaledLineDrawY, this._scaledCharWidth, this._scaledCharHeight);
x * this._scaledCharWidth, y * this._scaledLineHeight + this._scaledLineDrawY, charAtlasCellWidth, this._scaledCharHeight);
} else {
this._drawUncachedChar(terminal, char, width, fg, x, y, bold);
}