From f64f94ca565a2ec9f174f57a20fcfbfddb762cb8 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 10 Aug 2022 18:29:37 +0200 Subject: [PATCH] scale rounding in shadows --- src/render/decorations/CHyprDropShadowDecoration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index 33ed3be4..db1b8263 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -114,14 +114,14 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) { return; // prevent assert failed } - g_pHyprOpenGL->renderRect(&windowBox, CColor(0,0,0,0), *PROUNDING); + g_pHyprOpenGL->renderRect(&windowBox, CColor(0,0,0,0), *PROUNDING * pMonitor->scale); glStencilFunc(GL_NOTEQUAL, 1, -1); glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); } scaleBox(&fullBox, pMonitor->scale); - g_pHyprOpenGL->renderRoundedShadow(&fullBox, *PROUNDING, *PSHADOWSIZE * pMonitor->scale, a); + g_pHyprOpenGL->renderRoundedShadow(&fullBox, *PROUNDING * pMonitor->scale, *PSHADOWSIZE * pMonitor->scale, a); if (*PSHADOWIGNOREWINDOW) { // cleanup