src/video/windx5/SDL_dx5events.c
changeset 523 c210010f50f4
parent 491 da6a7e859616
child 536 bf7f477fb2b2
equal deleted inserted replaced
522:6b3998ddee6d 523:c210010f50f4
   536 	DWORD    event;
   536 	DWORD    event;
   537 
   537 
   538 	/* Check the normal windows queue (highest preference) */
   538 	/* Check the normal windows queue (highest preference) */
   539 	posted = 0;
   539 	posted = 0;
   540 	while ( ! posted &&
   540 	while ( ! posted &&
   541 	        PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) {
   541 	        PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
   542 		if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) {
   542 		if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
   543 			DispatchMessage(&msg);
   543 			DispatchMessage(&msg);
   544 		} else {
   544 		} else {
   545 			return(-1);
   545 			return(-1);
   546 		}
   546 		}
   547 	}
   547 	}