From 70a7047ee175d2e7fca1575d50a3738ac40fd2c6 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Mon, 22 Sep 2025 14:01:59 +0200 Subject: [PATCH] renderer: fix uv scaling detection (#11789) --- src/render/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index af983926..65d8a074 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1125,7 +1125,7 @@ void CHyprRenderer::calculateUVForSurface(PHLWINDOW pWindow, SPm_scale); - const bool SCALE_UNAWARE = MONITOR_WL_SCALE != pSurface->m_current.scale && !pSurface->m_current.viewport.hasDestination; + const bool SCALE_UNAWARE = MONITOR_WL_SCALE == pSurface->m_current.scale || !pSurface->m_current.viewport.hasDestination; const auto EXPECTED_SIZE = ((pSurface->m_current.viewport.hasDestination ? pSurface->m_current.viewport.destination : (pSurface->m_current.viewport.hasSource ? pSurface->m_current.viewport.source.size() / pSurface->m_current.scale : projSize)) * @@ -1133,7 +1133,7 @@ void CHyprRenderer::calculateUVForSurface(PHLWINDOW pWindow, SP 1 || RATIO.y > 1)) { const auto FIX = RATIO.clamp(Vector2D{1, 1}, Vector2D{1000000, 1000000}); uvBR = uvBR * FIX;