diff src/video/win32/SDL_win32events.c @ 2794:f7872b7a8732

Fixed mouse coordinate range on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Nov 2008 21:53:18 +0000
parents 5955b6550d7e
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Thu Nov 27 05:29:12 2008 +0000
+++ b/src/video/win32/SDL_win32events.c	Thu Nov 27 21:53:18 2008 +0000
@@ -240,13 +240,11 @@
                     break;
                 }
             }
+/* FIXME: Doesn't this defeat the point of using raw input? */
             GetCursorPos(&point);
-            ScreenToClient(hwnd, &point);
-            SDL_GetWindowSize(data->windowID, &w, &h);
-            SDL_UpdateCoordinates(w, h);        /* we're updating the current window size */
 
             /* if the message was sent by a tablet we have to send also pressure */
-            if (i == tablet) {
+            if (index == tablet) {
                 SDL_SendMouseMotion(index, 0, point.x, point.y, pressure);
             } else {
                 SDL_SendMouseMotion(index, 0, point.x, point.y, 0);