mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 13:41:59 -07:00
@@ -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
|
||||||
|
Reference in New Issue
Block a user