Remove IGlyphIdentifier in-between object

This was being constructed for every character draw
This commit is contained in:
Daniel Imms
2018-09-14 09:58:49 -07:00
parent 5c873c1ce2
commit 04f2d52f26
6 changed files with 88 additions and 56 deletions
+7 -1
View File
@@ -247,7 +247,13 @@ export abstract class BaseRenderLayer implements IRenderLayer {
fg += drawInBrightColor ? 8 : 0;
const atlasDidDraw = this._charAtlas && this._charAtlas.draw(
this._ctx,
{chars, code, bg, fg, bold: bold && terminal.options.enableBold, dim, italic},
chars,
code,
bg,
fg,
bold,
dim,
italic,
x * this._scaledCellWidth + this._scaledCharLeft,
y * this._scaledCellHeight + this._scaledCharTop
);