summaryrefslogtreecommitdiff
path: root/bsp/simulator
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/simulator')
-rw-r--r--bsp/simulator/drivers/sdl_fb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c
index 01417d7f47..1db3c3cf9d 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;
}