Skip to content

Commit

Permalink
Revert "fix: don't use Math.floor in DomRenderer charWidth computation"
Browse files Browse the repository at this point in the history
This reverts commit 23bdb2a.
  • Loading branch information
Tyriar committed May 24, 2019
1 parent 6e196da commit 1feb0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/dom/DomRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class DomRenderer extends Disposable implements IRenderer {
}

private _updateDimensions(): void {
this.dimensions.scaledCharWidth = this._terminal.charMeasure.width * window.devicePixelRatio;
this.dimensions.scaledCharWidth = Math.floor(this._terminal.charMeasure.width * window.devicePixelRatio);
this.dimensions.scaledCharHeight = Math.ceil(this._terminal.charMeasure.height * window.devicePixelRatio);
this.dimensions.scaledCellWidth = this.dimensions.scaledCharWidth + Math.round(this._terminal.options.letterSpacing);
this.dimensions.scaledCellHeight = Math.floor(this.dimensions.scaledCharHeight * this._terminal.options.lineHeight);
Expand Down

0 comments on commit 1feb0a2

Please sign in to comment.