Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+2
−2
src/video/windib/SDL_dibevents.c
-
+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); |
|
|