From d4e09f55bd67a3165a9c1a8fd49d7c8a1e71cf1f Mon Sep 17 00:00:00 2001
From: Jonas Kulla <Nyocurio@gmail.com>
Date: Wed, 27 Jul 2016 12:03:45 +0200
Subject: [PATCH] WindowVX: Fix move() not setting the correct dirty flags

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

diff --git a/src/windowvx.cpp b/src/windowvx.cpp
index 02a70d9..fe2aaef 100644
--- a/src/windowvx.cpp
+++ b/src/windowvx.cpp
@@ -852,10 +852,15 @@ void WindowVX::move(int x, int y, int width, int height)
 
 	const Vec2i size(std::max(0, width), std::max(0, height));
 
-	if (p->geo.w != size.x || p->geo.h != size.y)
+	if (p->geo.size() != size)
+	{
+		p->base.vertDirty = true;
 		p->base.texSizeDirty = true;
+		p->clipRectDirty = true;
+		p->ctrlVertDirty = true;
+	}
 
-	p->geo = IntRect(x, y, size.x, size.y);
+	p->geo = IntRect(Vec2i(x, y), size);
 	p->updateBaseQuad();
 }