hyprbars: use unscaled size for font calcs

This commit is contained in:
Vaxry 2023-10-29 23:22:29 +00:00
parent f203d69f98
commit 69dd204c52

View file

@ -316,7 +316,7 @@ void CHyprBar::renderBarButtonsText(wlr_box* barBox, const float scale) {
const bool LIGHT = button.col.r + button.col.g + button.col.b < 1;
renderText(button.iconTex, button.icon, LIGHT ? CColor(0xFFFFFFFF) : CColor(0xFF000000), BUFSIZE, scale, scaledButtonSize * 0.62);
renderText(button.iconTex, button.icon, LIGHT ? CColor(0xFFFFFFFF) : CColor(0xFF000000), BUFSIZE, scale, button.size * 0.62);
}
if (button.iconTex.m_iTexID == 0)