remove SDL_PollEvent on macosx

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@643 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
aymeric 2009-09-11 08:34:26 +00:00
parent a6ffc7c45b
commit 96e1db6398

View file

@ -226,9 +226,11 @@ static void sdl_display_uninit(MSDisplay *obj){
SDL_FreeSurface(sdl_screen);
sdl_screen=NULL;
}
#ifdef __linux
/*purge the event queue before leaving*/
for(i=0;SDL_PollEvent(&event) && i<100;++i){
}
#endif
sdl_show_window(FALSE);
}