mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 20:21:54 -07:00
pass/rect: fix bounding box
This commit is contained in:
@@ -24,9 +24,9 @@ bool CRectPassElement::needsPrecomputeBlur() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::optional<CBox> CRectPassElement::boundingBox() {
|
std::optional<CBox> CRectPassElement::boundingBox() {
|
||||||
return data.box.copy().expand(-data.round);
|
return data.box;
|
||||||
}
|
}
|
||||||
|
|
||||||
CRegion CRectPassElement::opaqueRegion() {
|
CRegion CRectPassElement::opaqueRegion() {
|
||||||
return data.color.a >= 1.F ? *boundingBox() : CRegion{};
|
return data.color.a >= 1.F ? boundingBox()->expand(-data.round) : CRegion{};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user