From e4790e3f8e8f3693d924c3d8fc9012e3ab7bbf8f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 19 Feb 2024 11:24:54 +0000 Subject: surface: fix invalid damage tracking in damageSurface ref #4744 --- src/helpers/Region.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/helpers/Region.hpp') 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 getRects() const; pixman_region32_t* pixman() { - return &m_rRegion; + return &m_rRegion; } private: -- cgit v1.2.3