Skip to content
Permalink
Browse files

Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)

  • Loading branch information
slouken committed Oct 8, 2002
1 parent a95620f commit 417abe3bc88dbedbe1087cf30eaa7764a0624d9f
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/video/windib/SDL_dibevents.c
  2. +2 −2 src/video/windx5/SDL_dx5events.c
@@ -172,8 +172,8 @@ void DIB_PumpEvents(_THIS)
{
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);
}
}
@@ -538,8 +538,8 @@ static int DX5_CheckInput(_THIS, int timeout, BOOL processInput)
/* 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);

0 comments on commit 417abe3

Please sign in to comment.