diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-02-19 11:24:54 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-02-19 11:24:54 +0000 |
| commit | e4790e3f8e8f3693d924c3d8fc9012e3ab7bbf8f (patch) | |
| tree | 45d88aee67b0529d3d7c11e875bbb6f7653bb06d /src/helpers/Region.hpp | |
| parent | 69a4f08dbee6dc08d1e2ce498ce80ab20844e4f3 (diff) | |
surface: fix invalid damage tracking in damageSurface
ref #4744
Diffstat (limited to 'src/helpers/Region.hpp')
| -rw-r--r-- | src/helpers/Region.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/Region.hpp b/src/helpers/Region.hpp index 972a2ba7..0c3e21ad 100644 --- a/src/helpers/Region.hpp +++ b/src/helpers/Region.hpp @@ -49,6 +49,7 @@ class CRegion { CRegion& invert(pixman_box32_t* box); CRegion& invert(const CBox& box); CRegion& scale(float scale); + CRegion& scale(const Vector2D& scale); CBox getExtents(); bool containsPoint(const Vector2D& vec) const; bool empty() const; @@ -58,7 +59,7 @@ class CRegion { std::vector<pixman_box32_t> getRects() const; pixman_region32_t* pixman() { - return &m_rRegion; + return &m_rRegion; } private: |
