From 07d187151e1855a7c9d42f6b99bd4909efb9c07a Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 11 Aug 2023 09:50:22 -0700 Subject: [PATCH] Update src/browser/renderer/shared/TextureAtlas.ts --- src/browser/renderer/shared/TextureAtlas.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/browser/renderer/shared/TextureAtlas.ts b/src/browser/renderer/shared/TextureAtlas.ts index f0f5d864..b73e7009 100644 --- a/src/browser/renderer/shared/TextureAtlas.ts +++ b/src/browser/renderer/shared/TextureAtlas.ts @@ -532,9 +532,7 @@ export class TextureAtlas implements ITextureAtlas { // Underline style/stroke this._tmpCtx.beginPath(); const xLeft = padding; - const yTop = restrictToCellHeight ? - Math.ceil(padding + this._config.deviceCharHeight) - yOffset - lineWidth * 2 : - Math.ceil(padding + this._config.deviceCharHeight) - yOffset; + const yTop = Math.ceil(padding + this._config.deviceCharHeight) - yOffset - (restrictToCellHeight ? lineWidth * 2 : 0); const yMid = yTop + lineWidth; const yBot = yTop + lineWidth * 2;