comparison src/video/win32/SDL_win32events.c @ 4902:50d0bff24d81

Make the union nameless to reduce the complexity of the API. (Are there any compilers still in use that don't support this?)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 29 Sep 2010 21:13:52 -0700
parents 69d9db65f248
children 716b2cbf4c9e
comparison
equal deleted inserted replaced
4901:deadc1219bea 4902:50d0bff24d81
112 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) { 112 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) {
113 SDL_SysWMmsg wmmsg; 113 SDL_SysWMmsg wmmsg;
114 114
115 SDL_VERSION(&wmmsg.version); 115 SDL_VERSION(&wmmsg.version);
116 wmmsg.subsystem = SDL_SYSWM_WINDOWS; 116 wmmsg.subsystem = SDL_SYSWM_WINDOWS;
117 wmmsg.msg.win.hwnd = hwnd; 117 wmmsg.win.hwnd = hwnd;
118 wmmsg.msg.win.msg = msg; 118 wmmsg.win.msg = msg;
119 wmmsg.msg.win.wParam = wParam; 119 wmmsg.win.wParam = wParam;
120 wmmsg.msg.win.lParam = lParam; 120 wmmsg.win.lParam = lParam;
121 SDL_SendSysWMEvent(&wmmsg); 121 SDL_SendSysWMEvent(&wmmsg);
122 } 122 }
123 123
124 /* Get the window data for the window */ 124 /* Get the window data for the window */
125 data = (SDL_WindowData *) GetProp(hwnd, TEXT("SDL_WindowData")); 125 data = (SDL_WindowData *) GetProp(hwnd, TEXT("SDL_WindowData"));