diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-01-23 22:59:06 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-01-23 22:59:42 +0000 |
| commit | d075d1cab9e8836be4544229486fec004236f3fa (patch) | |
| tree | 67e06d5c43f1c2dd85083e62b4ca6e1473b8bd37 /src/render/pass/RectPassElement.cpp | |
| parent | bb099e5733ae92c1b563efdb32d3d56a1540ab4a (diff) | |
pass/rect: fix bounding box
Diffstat (limited to 'src/render/pass/RectPassElement.cpp')
| -rw-r--r-- | src/render/pass/RectPassElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/pass/RectPassElement.cpp b/src/render/pass/RectPassElement.cpp index fe2f1f78..55471e78 100644 --- a/src/render/pass/RectPassElement.cpp +++ b/src/render/pass/RectPassElement.cpp @@ -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{}; } |
