Commit 96e1db63 authored by aymeric's avatar aymeric
Browse files

remove SDL_PollEvent on macosx

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@643 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent a6ffc7c4
No related merge requests found
Showing with 2 additions and 0 deletions
...@@ -226,9 +226,11 @@ static void sdl_display_uninit(MSDisplay *obj){ ...@@ -226,9 +226,11 @@ static void sdl_display_uninit(MSDisplay *obj){
SDL_FreeSurface(sdl_screen); SDL_FreeSurface(sdl_screen);
sdl_screen=NULL; sdl_screen=NULL;
} }
#ifdef __linux
/*purge the event queue before leaving*/ /*purge the event queue before leaving*/
for(i=0;SDL_PollEvent(&event) && i<100;++i){ for(i=0;SDL_PollEvent(&event) && i<100;++i){
} }
#endif
sdl_show_window(FALSE); sdl_show_window(FALSE);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment