fixed: compiler warning
authorwsoltys <wiso@no.way>
Sun, 1 Dec 2013 21:45:06 +0000 (22:45 +0100)
committerwsoltys <wiso@no.way>
Sun, 1 Dec 2013 21:45:27 +0000 (22:45 +0100)
xbmc/Application.cpp

index 7bab9e9..8e7f7a3 100644 (file)
@@ -3182,8 +3182,8 @@ bool CApplication::ProcessEventServer(float frameTime)
       newEvent.motion.yrel = 0;
       newEvent.motion.state = 0;
       newEvent.motion.which = 0x10;  // just a different value to distinguish between mouse and event client device.
-      newEvent.motion.x = pos.x;
-      newEvent.motion.y = pos.y;
+      newEvent.motion.x = (uint16_t)pos.x;
+      newEvent.motion.y = (uint16_t)pos.y;
       OnEvent(newEvent);  // had to call this to update g_Mouse position
       return OnAction(CAction(ACTION_MOUSE_MOVE, pos.x, pos.y));
     }