From 366e870b0e30ce1493a62bea86b5690870a6ce2e Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Tue, 7 Jun 2016 17:16:11 -0400
Subject: [PATCH] SDL2: check Rel Mouse Mode directly

---
 src/sdl/i_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index 53761f600d..9800c8cc73 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -749,7 +749,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
 			return;
 		}
 
-		if (!wrapmouseok)
+		if (SDL_GetRelativeMouseMode())
 		{
 			event.data2 = evt.xrel;
 			event.data3 = evt.yrel;
-- 
GitLab