mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 17:29:49 +01:00
parent
4971725b69
commit
f3c49c1295
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ CRectPassElement::CRectPassElement(const CRectPassElement::SRectData& data_) : d
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRectPassElement::draw(const CRegion& damage) {
|
void CRectPassElement::draw(const CRegion& damage) {
|
||||||
|
if (data.box.w <= 0 || data.box.h <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (data.color.a == 1.F || !data.blur)
|
if (data.color.a == 1.F || !data.blur)
|
||||||
g_pHyprOpenGL->renderRectWithDamage(&data.box, data.color, damage, data.round);
|
g_pHyprOpenGL->renderRectWithDamage(&data.box, data.color, damage, data.round);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue