diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index 01417d7f4..1db3c3cf9 100644 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/bsp/simulator/drivers/sdl_fb.c @@ -151,8 +151,8 @@ static DWORD WINAPI sdl_loop(LPVOID lpParam) /* handle SDL event */ while(!quit) { - while ( SDL_PollEvent(&event) ) - { + SDL_WaitEvent(&event); + switch (event.type) { case SDL_MOUSEMOTION: @@ -267,8 +267,6 @@ static DWORD WINAPI sdl_loop(LPVOID lpParam) break; } - SDL_Delay(20); - } if (quit) break; }