From f11cf6f1de708b6b3811788e8ff7984ff05a9546 Mon Sep 17 00:00:00 2001 From: EvilLary Date: Sun, 30 Nov 2025 00:16:49 +0300 Subject: [PATCH] renderer: fix uv sufrace calc with scales < 1 (#12481) --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 3b811ce8..c4c72c41 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1195,7 +1195,7 @@ void CHyprRenderer::calculateUVForSurface(PHLWINDOW pWindow, SPm_scale); - const bool SCALE_UNAWARE = MONITOR_WL_SCALE > 1 && (MONITOR_WL_SCALE == pSurface->m_current.scale || !pSurface->m_current.viewport.hasDestination); + const bool SCALE_UNAWARE = pMonitor->m_scale != 1.f && (MONITOR_WL_SCALE == pSurface->m_current.scale || !pSurface->m_current.viewport.hasDestination); const auto EXPECTED_SIZE = getSurfaceExpectedSize(pWindow, pSurface, pMonitor, main).value_or((projSize * pMonitor->m_scale).round()); const auto RATIO = projSize / EXPECTED_SIZE;