Skip to content

Commit d17df65

Browse files
committed
Improve rendering of dotted underlines
Fixes xtermjs#4060
1 parent d34bb5e commit d17df65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/renderer/shared/TextureAtlas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export class TextureAtlas implements ITextureAtlas {
587587
);
588588
break;
589589
case UnderlineStyle.DOTTED:
590-
this._tmpCtx.setLineDash([this._config.devicePixelRatio * 2, this._config.devicePixelRatio]);
590+
this._tmpCtx.setLineDash([Math.round(lineWidth), Math.round(lineWidth)]);
591591
this._tmpCtx.moveTo(xChLeft, yTop);
592592
this._tmpCtx.lineTo(xChRight, yTop);
593593
break;

0 commit comments

Comments
 (0)