fix dumbfounding issue on win32 that caused HUGE lags

This commit is contained in:
Eduardo Bart
2012-04-04 13:21:02 -03:00
parent 034fce9147
commit 2c38dfb397
2 changed files with 3 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ void WIN32Window::poll()
fireKeysPress();
MSG msg;
if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}