Skip to content

Commit

Permalink
Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 8, 2002
1 parent a95620f commit 417abe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -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);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/video/windx5/SDL_dx5events.c
Expand Up @@ -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);
Expand Down

0 comments on commit 417abe3

Please sign in to comment.