Skip to content

Commit 72f1d10

Browse files
authored
Merge pull request #4350 from Tyriar/dotted
Improve rendering of dotted underlines
2 parents 5a2bf6d + d17df65 commit 72f1d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/renderer/shared/TextureAtlas.ts

Lines changed: 1 addition & 1 deletion
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)