renderer: proper full occlusion checks for back layer
This commit is contained in:
parent
408d96668d
commit
68e57b7ee3
3 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue