mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user