diff options
| author | Arkady Buryakov <arkady@buryakov.pro> | 2025-03-26 04:07:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 02:07:56 +0100 |
| commit | 9a67354fa24b66dc35f2c702be085122d110c38a (patch) | |
| tree | 2d86437a270527142aedd4435a23f3c2362a9a89 /src/render | |
| parent | f7ba86d1f335112ae0d13548947ddbd76b1477b6 (diff) | |
Groupbar: apply scaling factor to text (#9731)
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index d7858853..9e6db6ac 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -278,7 +278,7 @@ CTitleTex::CTitleTex(PHLWINDOW pWindow, const Vector2D& bufferSize, const float const CHyprColor COLOR = CHyprColor(*PTEXTCOLOR); const auto FONTFAMILY = *PTITLEFONTFAMILY != STRVAL_EMPTY ? *PTITLEFONTFAMILY : *FALLBACKFONT; - tex = g_pHyprOpenGL->renderText(pWindow->m_szTitle, COLOR, *PTITLEFONTSIZE, false, FONTFAMILY, bufferSize.x - 2 /* some padding yk */); + tex = g_pHyprOpenGL->renderText(pWindow->m_szTitle, COLOR, *PTITLEFONTSIZE * monitorScale, false, FONTFAMILY, bufferSize.x - 2 /* some padding yk */); if (tex) texSize = tex->m_vSize; |
