diff options
author | Maximilian Seidler <[email protected]> | 2024-10-03 22:00:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-03 23:00:44 +0100 |
commit | aed529f695bc62f5fa45dc94c545275ebb49bc48 (patch) | |
tree | 548ab014a8317fb995e2cbe06fb85eb3a140d191 | |
parent | de68e065fe861d7ca01eca267df4c305bc6e73c2 (diff) | |
download | Hyprland-aed529f695bc62f5fa45dc94c545275ebb49bc48.tar.gz Hyprland-aed529f695bc62f5fa45dc94c545275ebb49bc48.zip |
renderer: fix uvBR calculation (#7975)
-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 417a3ff8..b081fd81 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1134,7 +1134,7 @@ void CHyprRenderer::calculateUVForSurface(PHLWINDOW pWindow, SP<CWLSurfaceResour const auto HPERC = (double)(geom.y + geom.height) / (double)pSurface->current.size.y; const auto TOADDTL = Vector2D(XPERC * (uvBR.x - uvTL.x), YPERC * (uvBR.y - uvTL.y)); - uvBR = uvBR - Vector2D(1.0 - WPERC * (uvBR.x - uvTL.x), 1.0 - HPERC * (uvBR.y - uvTL.y)); + uvBR = uvBR - Vector2D((1.0 - WPERC) * (uvBR.x - uvTL.x), (1.0 - HPERC) * (uvBR.y - uvTL.y)); uvTL = uvTL + TOADDTL; // TODO: make this passed to the func. Might break in the future. |