diff options
author | Vaxry <[email protected]> | 2024-05-04 20:30:03 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-04 20:30:03 +0100 |
commit | a3309b51a254f142c535022615be6f76eb23fa9b (patch) | |
tree | fc8a27a0087b2864fc962e383e05616973f4a4c8 | |
parent | cba1ade848feac44b2eda677503900639581c3f4 (diff) | |
download | Hyprland-a3309b51a254f142c535022615be6f76eb23fa9b.tar.gz Hyprland-a3309b51a254f142c535022615be6f76eb23fa9b.zip |
shadow: fix small pixel gaps between border
huge fix
-rw-r--r-- | src/render/decorations/CHyprDropShadowDecoration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index 4f7ff822..fba279cc 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -190,7 +190,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) { g_pHyprOpenGL->renderRoundedShadow(&fullBox, ROUNDING * pMonitor->scale, *PSHADOWSIZE * pMonitor->scale, CColor(1, 1, 1, PWINDOW->m_cRealShadowColor.value().a), a); // render black window box ("clip") - g_pHyprOpenGL->renderRect(&windowBox, CColor(0, 0, 0, 1.0), ROUNDING * pMonitor->scale); + g_pHyprOpenGL->renderRect(&windowBox, CColor(0, 0, 0, 1.0), (ROUNDING + 1 /* This fixes small pixel gaps. */) * pMonitor->scale); alphaSwapFB.bind(); |