diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-26 15:24:24 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-26 15:24:24 +0000 |
| commit | 68e57b7ee36f015d99988f38cb3a8b83c23ae7c3 (patch) | |
| tree | 379a2ae858f2cf44dc177a7abd1a2e823347ad55 /src/helpers/Region.cpp | |
| parent | 408d96668d57fdd1a713e56f1d40a9befd51bd4a (diff) | |
renderer: proper full occlusion checks for back layer
Diffstat (limited to 'src/helpers/Region.cpp')
| -rw-r--r-- | src/helpers/Region.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/Region.cpp b/src/helpers/Region.cpp index df7de442..8f180416 100644 --- a/src/helpers/Region.cpp +++ b/src/helpers/Region.cpp @@ -88,6 +88,11 @@ CRegion& CRegion::invert(pixman_box32_t* box) { return *this; } +CRegion& CRegion::invert(const CBox& box) { + pixman_box32 pixmanBox = {box.x, box.y, box.w + box.x, box.h + box.y}; + return this->invert(&pixmanBox); +} + CRegion& CRegion::translate(const Vector2D& vec) { pixman_region32_translate(&m_rRegion, vec.x, vec.y); return *this; |
