# HG changeset patch # User Sam Lantinga # Date 1034094323 0 # Node ID c210010f50f492b405a80beebd906886135196af # Parent 6b3998ddee6deeeb25d539812c0e598a033b1e77 Fixed windows event handling for ActiveX controls (thanks Huib-Jan!) diff -r 6b3998ddee6d -r c210010f50f4 src/video/windib/SDL_dibevents.c --- a/src/video/windib/SDL_dibevents.c Tue Oct 08 15:48:21 2002 +0000 +++ b/src/video/windib/SDL_dibevents.c Tue Oct 08 16:25:23 2002 +0000 @@ -172,8 +172,8 @@ { MSG msg; - while ( PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) { - if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) { + while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) { + if ( GetMessage(&msg, NULL, 0, 0) > 0 ) { DispatchMessage(&msg); } } diff -r 6b3998ddee6d -r c210010f50f4 src/video/windx5/SDL_dx5events.c --- a/src/video/windx5/SDL_dx5events.c Tue Oct 08 15:48:21 2002 +0000 +++ b/src/video/windx5/SDL_dx5events.c Tue Oct 08 16:25:23 2002 +0000 @@ -538,8 +538,8 @@ /* Check the normal windows queue (highest preference) */ posted = 0; while ( ! posted && - PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) { - if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) { + PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) { + if ( GetMessage(&msg, NULL, 0, 0) > 0 ) { DispatchMessage(&msg); } else { return(-1);