src/video/windows/SDL_windowsevents.c
changeset 7276 37814e7eeff3
parent 7275 0a6b3b998814
child 7295 737cc5bad795
--- a/src/video/windows/SDL_windowsevents.c	Wed Jun 05 12:00:15 2013 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Wed Jun 05 12:00:18 2013 -0700
@@ -33,6 +33,8 @@
 /* Dropfile support */
 #include <shellapi.h>
 
+/* For GET_X_LPARAM, GET_Y_LPARAM. */
+#include <windowsx.h>
 
 /*#define WMMSG_DEBUG*/
 #ifdef WMMSG_DEBUG
@@ -381,7 +383,7 @@
 
     case WM_MOUSEMOVE:
         if( !SDL_GetMouse()->relative_mode )
-            SDL_SendMouseMotion(data->window, 0, 0, LOWORD(lParam), HIWORD(lParam));
+            SDL_SendMouseMotion(data->window, 0, 0, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
         /* don't break here, fall through to check the wParam like the button presses */
     case WM_LBUTTONUP:
     case WM_RBUTTONUP: