Skip to content

Commit

Permalink
Improve rendering of dotted underlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Dec 23, 2022
1 parent d34bb5e commit d17df65
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 d17df65

Please sign in to comment.