aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-27 23:41:55 +0200
committervaxerski <[email protected]>2022-08-27 23:41:55 +0200
commite059ce4051c58adac4d1e0f300fd1ddad7ac8d1b (patch)
tree7752a12185d64f0ccb42a5bb0456fba81f9cd5bb
parent01f42f1d862f94a53f6991af7afc7da1f737ad4d (diff)
downloadHyprland-viewporter-impl.tar.gz
Hyprland-viewporter-impl.zip
code cleanupviewporter-impl
-rw-r--r--src/render/Renderer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 7f2da028..b11db5e7 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -410,8 +410,6 @@ void CHyprRenderer::calculateUVForWindowSurface(CWindow* pWindow, wlr_surface* p
Vector2D uvTL;
Vector2D uvBR = Vector2D(1, 1);
- Vector2D adjustedSurfaceScale = Vector2D(1, 1);
-
wlr_box geom;
wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, &geom);
@@ -425,8 +423,6 @@ void CHyprRenderer::calculateUVForWindowSurface(CWindow* pWindow, wlr_surface* p
uvTL = Vector2D(bufferSource.x / surfaceSize.x, bufferSource.y / surfaceSize.y);
uvBR = Vector2D((bufferSource.x + bufferSource.width) / surfaceSize.x, (bufferSource.y + bufferSource.height) / surfaceSize.y);
- adjustedSurfaceScale = Vector2D(bufferSource.width / surfaceSize.x, bufferSource.height / surfaceSize.y);
-
// TODO: (example: chromium) this still has a tiny "bump" at the end.
if (main) {
uvTL = uvTL + (Vector2D((double)geom.x / ((double)pSurface->current.width), (double)geom.y / ((double)pSurface->current.height)) * (((uvBR.x - uvTL.x) * surfaceSize.x) / surfaceSize.x));