From e58976fe5a1c4c311643c9d7c3af72dd4a935750 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 11 May 2015 13:52:36 -0700 Subject: [PATCH] Fix magnifier location --- interface/src/ui/ApplicationOverlay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/src/ui/ApplicationOverlay.cpp b/interface/src/ui/ApplicationOverlay.cpp index 6d9701ded7..b65e75923e 100644 --- a/interface/src/ui/ApplicationOverlay.cpp +++ b/interface/src/ui/ApplicationOverlay.cpp @@ -1226,19 +1226,17 @@ glm::vec2 ApplicationOverlay::sphericalToOverlay(const glm::vec2& sphericalPos) result /= _textureFov; result.x /= _textureAspectRatio; result += 0.5f; - result.x = (-sphericalPos.x / (_textureFov * _textureAspectRatio) + 0.5f); - result.y = (sphericalPos.y / _textureFov + 0.5f); result *= qApp->getCanvasSize(); return result; } glm::vec2 ApplicationOverlay::overlayToSpherical(const glm::vec2& overlayPos) const { glm::vec2 result = overlayPos; - result.x *= -1.0; result /= qApp->getCanvasSize(); result -= 0.5f; result *= _textureFov; result.x *= _textureAspectRatio; + result.x *= -1.0f; return result; }