diff options
author | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-11 17:21:15 +0000 |
---|---|---|
committer | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-11 17:21:15 +0000 |
commit | da596c4a0351369873f237140854e416b32b3631 (patch) | |
tree | d01f701b09dc3525d6d55bc887d5b4c3023fcdcb /libvo | |
parent | 07c2ced269949191f6f6d0ca847030e91da99aaa (diff) | |
download | mpv-da596c4a0351369873f237140854e416b32b3631.tar.bz2 mpv-da596c4a0351369873f237140854e416b32b3631.tar.xz |
Got rid of aalib crashing workaround with SDL1.2.1+
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@771 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_sdl.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 354ec5b9ae..cf0192f625 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -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 @@ static int sdl_open (void *plugin, void *name) * 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 @@ increase your display's color depth, if possible.\n", priv->bpp); * 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; |