mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
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:
parent
a6ffc7c45b
commit
96e1db6398
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue