diff src/video/win32/SDL_win32events.c @ 4900:69d9db65f248

Merged the Windows custom window system hooks into the union used by X11. Added Cocoa custom window system hooks
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Sep 2010 01:24:05 -0700
parents d6adaafcfb10
children 50d0bff24d81
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Mon Sep 27 00:50:46 2010 -0700
+++ b/src/video/win32/SDL_win32events.c	Mon Sep 27 01:24:05 2010 -0700
@@ -113,10 +113,11 @@
         SDL_SysWMmsg wmmsg;
 
         SDL_VERSION(&wmmsg.version);
-        wmmsg.hwnd = hwnd;
-        wmmsg.msg = msg;
-        wmmsg.wParam = wParam;
-        wmmsg.lParam = lParam;
+        wmmsg.subsystem = SDL_SYSWM_WINDOWS;
+        wmmsg.msg.win.hwnd = hwnd;
+        wmmsg.msg.win.msg = msg;
+        wmmsg.msg.win.wParam = wParam;
+        wmmsg.msg.win.lParam = lParam;
         SDL_SendSysWMEvent(&wmmsg);
     }