From e059ce4051c58adac4d1e0f300fd1ddad7ac8d1b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 27 Aug 2022 23:41:55 +0200 Subject: [PATCH] code cleanup --- src/render/Renderer.cpp | 4 ---- 1 file changed, 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));