From f036e83a2df3cab0702b70a9f9cb9098ea35d7a0 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Fri, 15 Aug 2014 23:46:26 +0200 Subject: [PATCH] WindowVX: Remove faulty cursor rect positioning logic --- src/windowvx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windowvx.cpp b/src/windowvx.cpp index 2f3636e..43f04a7 100644 --- a/src/windowvx.cpp +++ b/src/windowvx.cpp @@ -761,8 +761,8 @@ struct WindowVXPrivate if (drawCursor) { Vec2i contTrans = pad.pos(); - contTrans.x += std::abs(-contentsOff.x) + cursorRect->x; - contTrans.y += std::abs(-contentsOff.y) + cursorRect->y; + contTrans.x += -contentsOff.x + cursorRect->x; + contTrans.y += -contentsOff.y + cursorRect->y; shader.setTranslation(contTrans); TEX::setSmooth(true);