Skip to content

Commit

Permalink
Merge pull request #4350 from Tyriar/dotted
Browse files Browse the repository at this point in the history
Improve rendering of dotted underlines
  • Loading branch information
Tyriar committed Dec 23, 2022
2 parents 5a2bf6d + d17df65 commit 72f1d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/renderer/shared/TextureAtlas.ts
Expand Up @@ -587,7 +587,7 @@ export class TextureAtlas implements ITextureAtlas {
);
break;
case UnderlineStyle.DOTTED:
this._tmpCtx.setLineDash([this._config.devicePixelRatio * 2, this._config.devicePixelRatio]);
this._tmpCtx.setLineDash([Math.round(lineWidth), Math.round(lineWidth)]);
this._tmpCtx.moveTo(xChLeft, yTop);
this._tmpCtx.lineTo(xChRight, yTop);
break;
Expand Down

0 comments on commit 72f1d10

Please sign in to comment.