mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19:05:58 +01:00
fix shadows on scaled
This commit is contained in:
parent
6213328d2c
commit
9388bb5d55
1 changed files with 4 additions and 1 deletions
|
@ -100,6 +100,8 @@ void CHyprDropShadowDecoration::draw(SMonitor* pMonitor, float a) {
|
|||
|
||||
wlr_box windowBox = {m_vLastWindowPos.x - pMonitor->vecPosition.x, m_vLastWindowPos.y - pMonitor->vecPosition.y, m_vLastWindowSize.x, m_vLastWindowSize.y};
|
||||
|
||||
scaleBox(&windowBox, pMonitor->scale);
|
||||
|
||||
if (windowBox.width < 1 || windowBox.height < 1) {
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
return; // prevent assert failed
|
||||
|
@ -111,6 +113,7 @@ void CHyprDropShadowDecoration::draw(SMonitor* pMonitor, float a) {
|
|||
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
|
||||
}
|
||||
|
||||
scaleBox(&fullBox, pMonitor->scale);
|
||||
g_pHyprOpenGL->renderRoundedShadow(&fullBox, *PROUNDING, *PSHADOWSIZE, a);
|
||||
|
||||
if (*PSHADOWIGNOREWINDOW) {
|
||||
|
|
Loading…
Reference in a new issue