src/video/windib/SDL_dibevents.c
branchSDL-1.2
changeset 4384 6800e2560310
parent 4350 4988a4f76a09
child 5886 05fabaf401c9
--- a/src/video/windib/SDL_dibevents.c	Sun Nov 15 17:21:24 2009 +0000
+++ b/src/video/windib/SDL_dibevents.c	Tue Nov 17 04:59:13 2009 +0000
@@ -198,7 +198,7 @@
 				m.wParam = wParam;
 				m.lParam = lParam;
 				m.time = 0;
-				if ( PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
+				if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
 					GetMessage(&m, hwnd, 0, WM_USER);
 			    		wParam = m.wParam;
 				}
@@ -363,7 +363,6 @@
 
 	while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
 		if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
-			TranslateMessage(&msg);
 			DispatchMessage(&msg);
 		}
 	}