diff options
| author | EvilLary <EvilLary@proton.me> | 2025-11-30 00:16:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-29 21:16:49 +0000 |
| commit | f11cf6f1de708b6b3811788e8ff7984ff05a9546 (patch) | |
| tree | d3fb3110bb5f0483046e4a3f24ff2e4a2b3db88b /src/render/Renderer.cpp | |
| parent | 574ee71d568a95101320f264d7afb25034b8faa3 (diff) | |
renderer: fix uv sufrace calc with scales < 1 (#12481)
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, SP<CWLSurfaceResour // to let the apps know to NOT add CSD. Also if source is there. // there is no way to fix this if that's the case const auto MONITOR_WL_SCALE = std::ceil(pMonitor->m_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; |
