src/video/windx5/SDL_dx5events.c
branchSDL-1.2
changeset 4384 6800e2560310
parent 4383 daf9e6037596
child 4391 07b330419439
--- a/src/video/windx5/SDL_dx5events.c	Sun Nov 15 17:21:24 2009 +0000
+++ b/src/video/windx5/SDL_dx5events.c	Tue Nov 17 04:59:13 2009 +0000
@@ -657,7 +657,6 @@
 	while ( ! posted &&
 	        PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
 		if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
-			TranslateMessage(&msg);
 			DispatchMessage(&msg);
 		} else {
 			return(-1);
@@ -716,17 +715,12 @@
 	}
 	if ( event != WAIT_TIMEOUT ) {
 		/* Maybe there was a windows message? */
-		posted = 0;
-		while ( ! posted &&
-			PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
+		if ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
 			if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
-				TranslateMessage(&msg);
 				DispatchMessage(&msg);
 			} else {
 				return(-1);
 			}
-		}
-		if ( posted ) {
 			return(1);
 		}
 	}