comparison src/video/wincommon/SDL_sysevents.c @ 1456:84de7511f79f

Fixed a bunch of 64-bit compatibility problems
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Mar 2006 09:43:47 +0000
parents bb6839704ed6
children 8dfa9a6d69a5
comparison
equal deleted inserted replaced
1455:f487bb150acc 1456:84de7511f79f
189 } 189 }
190 static BOOL WINAPI WIN_TrackMouseEvent(TRACKMOUSEEVENT *ptme) 190 static BOOL WINAPI WIN_TrackMouseEvent(TRACKMOUSEEVENT *ptme)
191 { 191 {
192 if ( ptme->dwFlags == TME_LEAVE ) { 192 if ( ptme->dwFlags == TME_LEAVE ) {
193 return SetTimer(ptme->hwndTrack, ptme->dwFlags, 100, 193 return SetTimer(ptme->hwndTrack, ptme->dwFlags, 100,
194 (TIMERPROC)TrackMouseTimerProc); 194 (TIMERPROC)TrackMouseTimerProc) != 0;
195 } 195 }
196 return FALSE; 196 return FALSE;
197 } 197 }
198 #endif /* WM_MOUSELEAVE */ 198 #endif /* WM_MOUSELEAVE */
199 199
245 } 245 }
246 246
247 /* The main Win32 event handler 247 /* The main Win32 event handler
248 DJM: This is no longer static as (DX5/DIB)_CreateWindow needs it 248 DJM: This is no longer static as (DX5/DIB)_CreateWindow needs it
249 */ 249 */
250 LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) 250 LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
251 { 251 {
252 SDL_VideoDevice *this = current_video; 252 SDL_VideoDevice *this = current_video;
253 static int mouse_pressed = 0; 253 static int mouse_pressed = 0;
254 static int in_window = 0; 254 static int in_window = 0;
255 #ifdef WMMSG_DEBUG 255 #ifdef WMMSG_DEBUG