From bce4eb2bee4cb731809ae2d85da8a3fd3106c99e Mon Sep 17 00:00:00 2001
From: Jonas Kulla <Nyocurio@gmail.com>
Date: Fri, 15 Aug 2014 23:20:48 +0200
Subject: [PATCH] WindowVX: Fix cursor rectangle geometry not updating

---
 src/windowvx.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/windowvx.cpp b/src/windowvx.cpp
index 56ab784..8ff295f 100644
--- a/src/windowvx.cpp
+++ b/src/windowvx.cpp
@@ -251,6 +251,8 @@ struct WindowVXPrivate
 
 		prepareCon = shState->prepareDraw.connect
 			(sigc::mem_fun(this, &WindowVXPrivate::prepare));
+
+		refreshCursorRectCon();
 	}
 
 	~WindowVXPrivate()
@@ -759,8 +761,8 @@ struct WindowVXPrivate
 			if (drawCursor)
 			{
 				Vec2i contTrans = pad.pos();
-				contTrans.x += std::abs(-contentsOff.x);
-				contTrans.y += std::abs(-contentsOff.y);
+				contTrans.x += std::abs(-contentsOff.x) + cursorRect->x;
+				contTrans.y += std::abs(-contentsOff.y) + cursorRect->y;
 				shader.setTranslation(contTrans);
 
 				TEX::setSmooth(true);