[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.53,1.54

Atmosfear atmos4 at mplayer.dev.hu
Mon Aug 27 13:49:23 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv5550/libvo

Modified Files:
	vo_sdl.c 
Log Message:
Applied quit via windowbutton patch.


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- vo_sdl.c	14 Aug 2001 08:18:52 -0000	1.53
+++ vo_sdl.c	27 Aug 2001 11:49:10 -0000	1.54
@@ -430,7 +430,7 @@
 	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_QUIT, SDL_IGNORE);
 	SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE);
 	SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
 #endif
@@ -1144,6 +1144,10 @@
 					mplayer_put_key(keypressed);
                                 }
                                 
+				break;
+				case SDL_QUIT:
+					SDL_ShowCursor(1);
+					mplayer_put_key('q');
 				break;
 		}
 	}




More information about the MPlayer-cvslog mailing list