diff src/video/win32/SDL_win32window.c @ 1722:5daa04d862f1 SDL-1.3

Added a userdata parameter for event filters. Added a function to filter the existing queued events. Added explicit support for relative mouse mode to the API.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 30 Jun 2006 08:18:44 +0000
parents a1ebb17f9c52
children 6c63fc2bd986
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Fri Jun 30 05:50:35 2006 +0000
+++ b/src/video/win32/SDL_win32window.c	Fri Jun 30 08:18:44 2006 +0000
@@ -40,9 +40,10 @@
         SDL_OutOfMemory();
         return -1;
     }
-    data->window = window;
+    data->windowID = window->id;
     data->hwnd = hwnd;
     data->created = created;
+    data->videodata = (SDL_VideoData *) SDL_GetVideoDevice()->driverdata;
 
     /* Associate the data with the window */
     if (!SetProp(hwnd, TEXT("SDL_WindowData"), data)) {