From 176356630853a6558b8125726bbdaf6411593488 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 19 Feb 2024 11:34:55 +0000 Subject: surface: minor fixes for last logicalDamage calc fix --- src/helpers/WLSurface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helpers/WLSurface.cpp') 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; -- cgit v1.2.3