Update src/browser/renderer/shared/CellColorResolver.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
xie jialong 努力鸭
2023-08-25 10:34:31 +08:00
committed by GitHub
co-authored by Daniel Imms
parent d15abd7f28
commit 08f7b4c53c
@@ -156,8 +156,7 @@ export class CellColorResolver {
if (cell.extended.underlineStyle === UnderlineStyle.DOTTED) {
if (code !== NULL_CELL_CODE) {
const fontSize = this._terminal.options.fontSize;
const drp = this._coreBrowserService.dpr;
const lineWidth = Math.max(1, Math.floor(fontSize! * drp / 15));
const lineWidth = Math.max(1, Math.floor(fontSize! * this._coreBrowserService.dpr / 15));
let chWidth: number;
if (typeof code === 'number') {
chWidth = this._unicodeService.wcwidth(code);