summaryrefslogtreecommitdiff
path: root/src/helpers/WLSurface.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-02-19 11:34:55 +0000
committervaxerski <vaxry@vaxry.net>2024-02-19 11:34:55 +0000
commit176356630853a6558b8125726bbdaf6411593488 (patch)
tree371c4f303ef06b3eac4335157a433717aac399f6 /src/helpers/WLSurface.cpp
parente4790e3f8e8f3693d924c3d8fc9012e3ab7bbf8f (diff)
surface: minor fixes for last logicalDamage calc fix
Diffstat (limited to 'src/helpers/WLSurface.cpp')
-rw-r--r--src/helpers/WLSurface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp
index 99771d0d..2aa36267 100644
--- a/src/helpers/WLSurface.cpp
+++ b/src/helpers/WLSurface.cpp
@@ -57,10 +57,10 @@ CRegion CWLSurface::logicalDamage() const {
damage.transform(m_pWLRSurface->current.transform, m_pWLRSurface->current.buffer_width, m_pWLRSurface->current.buffer_height);
damage.scale(1.0 / m_pWLRSurface->current.scale);
- const auto VPSIZE = getViewporterCorrectedSize() / m_pWLRSurface->current.scale;
+ const auto VPSIZE = getViewporterCorrectedSize();
const auto CORRECTVEC = correctSmallVec();
- damage.scale({VPSIZE.x / m_pWLRSurface->current.width, VPSIZE.y / m_pWLRSurface->current.height});
+ damage.scale({VPSIZE.x / m_pWLRSurface->current.buffer_width, VPSIZE.y / m_pWLRSurface->current.buffer_height});
damage.translate(CORRECTVEC);
return damage;