mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-06 09:10:12 +01:00
pass/rect: fix bounding box
This commit is contained in:
parent
bb099e5733
commit
d075d1cab9
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ bool CRectPassElement::needsPrecomputeBlur() {
|
|||
}
|
||||
|
||||
std::optional<CBox> CRectPassElement::boundingBox() {
|
||||
return data.box.copy().expand(-data.round);
|
||||
return data.box;
|
||||
}
|
||||
|
||||
CRegion CRectPassElement::opaqueRegion() {
|
||||
return data.color.a >= 1.F ? *boundingBox() : CRegion{};
|
||||
return data.color.a >= 1.F ? boundingBox()->expand(-data.round) : CRegion{};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue