hyprbars: fix rounding (#327)
Some checks are pending
Nix / build (push) Waiting to run

This commit is contained in:
Mihai Fufezan 2025-04-29 20:45:46 +03:00 committed by GitHub
parent 2b9a54f21b
commit e2fc760fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -576,7 +576,7 @@ void CHyprBar::renderPass(PHLMONITOR pMonitor, const float& a) {
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
windowBox.translate(WORKSPACEOFFSET).scale(pMonitor->scale).round();
g_pHyprOpenGL->renderRect(windowBox, CHyprColor(0, 0, 0, 0), scaledRounding);
g_pHyprOpenGL->renderRect(windowBox, CHyprColor(0, 0, 0, 0), scaledRounding, m_pWindow->roundingPower());
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glStencilFunc(GL_NOTEQUAL, 1, -1);
@ -586,7 +586,7 @@ void CHyprBar::renderPass(PHLMONITOR pMonitor, const float& a) {
if (SHOULDBLUR)
g_pHyprOpenGL->renderRectWithBlur(titleBarBox, color, scaledRounding, m_pWindow->roundingPower(), a);
else
g_pHyprOpenGL->renderRect(titleBarBox, color, scaledRounding);
g_pHyprOpenGL->renderRect(titleBarBox, color, scaledRounding, m_pWindow->roundingPower());
// render title
if (**PENABLETITLE && (m_szLastTitle != PWINDOW->m_title || m_bWindowSizeChanged || m_pTextTex->m_iTexID == 0 || m_bTitleColorChanged)) {