# HG changeset patch # User atmosfear # Date 989601675 0 # Node ID 0e549c933515649d3d8f2c19d6a0b1f9194fc1ed # Parent e1c2c60fa8815cfaaf1fa76d396acb71ffee2af1 Got rid of aalib crashing workaround with SDL1.2.1+ diff -r e1c2c60fa881 -r 0e549c933515 libvo/vo_sdl.c --- a/libvo/vo_sdl.c Fri May 11 14:52:06 2001 +0000 +++ b/libvo/vo_sdl.c Fri May 11 17:21:15 2001 +0000 @@ -89,8 +89,6 @@ * Felix Buenemann: further changes will be visible through cvs log, don't want * to update this all the time (CVS info on http://mplayer.sourceforge.net) * - * KNOWN BUGS: - * - Crashes with aalib (fixed, but have to find cause!) */ /* define to force software-surface (video surface stored in system memory)*/ @@ -337,9 +335,7 @@ * 8-bits, for example. So, if the display is less than 16-bits, * we'll force the BPP to 16, and pray that SDL can emulate for us. */ - //commented out for RGB test reasons priv->bpp = vidInfo->vfmt->BitsPerPixel; - //FIXME: DO NOT ADD ANY CODE BELOW THIS OR SDL WILL CRASH WITH AALIB! if (!priv->mode && priv->bpp < 16) { if(verbose) printf("SDL: Your SDL display target wants to be at a color depth of (%d), but we need it to be at\ @@ -353,15 +349,15 @@ * We use SDL_KEYUP cause SDL_KEYDOWN seems to cause problems * with keys need to be pressed twice, to be recognized. */ - /*SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE); - SDL_EventState(SDL_KEYDOWN, SDL_IGNORE); +#ifndef BUGGY_SDL + SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE); SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); SDL_EventState(SDL_MOUSEBUTTONDOWN, SDL_IGNORE); SDL_EventState(SDL_MOUSEBUTTONUP, SDL_IGNORE); SDL_EventState(SDL_QUIT, SDL_IGNORE); SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE); - SDL_EventState(SDL_USEREVENT, SDL_IGNORE);*/ - + SDL_EventState(SDL_USEREVENT, SDL_IGNORE); +#endif /* Success! */ return 0;