mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #4350 from Tyriar/dotted
Improve rendering of dotted underlines
This commit is contained in:
@@ -587,7 +587,7 @@ export class TextureAtlas implements ITextureAtlas {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case UnderlineStyle.DOTTED:
|
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.moveTo(xChLeft, yTop);
|
||||||
this._tmpCtx.lineTo(xChRight, yTop);
|
this._tmpCtx.lineTo(xChRight, yTop);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user