summaryrefslogtreecommitdiff
path: root/src/desktop/Subsurface.hpp
diff options
context:
space:
mode:
authorLee Bousfield <ljbousfield@gmail.com>2025-04-16 10:49:01 -0500
committerGitHub <noreply@github.com>2025-04-16 17:49:01 +0200
commit3fa6320a391ed60779702e058f67649beb787962 (patch)
treeb5a4aed23a100b236c2e522211285444ea939149 /src/desktop/Subsurface.hpp
parent1ae7e2164c25ad4c22698b0ac12969f1e2a1b8ca (diff)
desktop: Damage subsurface when position changes (#10094)
Diffstat (limited to 'src/desktop/Subsurface.hpp')
-rw-r--r--src/desktop/Subsurface.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop/Subsurface.hpp b/src/desktop/Subsurface.hpp
index 2983c7c1..7b596337 100644
--- a/src/desktop/Subsurface.hpp
+++ b/src/desktop/Subsurface.hpp
@@ -49,7 +49,8 @@ class CSubsurface {
WP<CWLSubsurfaceResource> m_pSubsurface;
SP<CWLSurface> m_pWLSurface;
- Vector2D m_vLastSize = {};
+ Vector2D m_vLastSize = {};
+ Vector2D m_vLastPosition = {};
// if nullptr, means it's a dummy node
WP<CSubsurface> m_pParent;
@@ -64,4 +65,5 @@ class CSubsurface {
void initSignals();
void initExistingSubsurfaces(SP<CWLSurfaceResource> pSurface);
void checkSiblingDamage();
+ void damageLastArea();
};