[Mplayer-cvslog] CVS: 0_90/libvo vo_sdl.c,1.99,1.100

Arpi of Ize arpi at mplayerhq.hu
Sun Apr 6 22:53:49 CEST 2003


Update of /cvsroot/mplayer/0_90/libvo
In directory mail:/var/tmp.root/cvs-serv18405

Modified Files:
	vo_sdl.c 
Log Message:
backport: ESC fix


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libvo/vo_sdl.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- vo_sdl.c	13 Jan 2003 01:20:21 -0000	1.99
+++ vo_sdl.c	6 Apr 2003 20:53:47 -0000	1.100
@@ -540,6 +540,9 @@
 {
 	struct sdl_priv_s *priv = &sdl_priv;
 
+	if (priv->fullmode)
+	    SDL_ShowCursor(1);
+
 	/* Cleanup YUV Overlay structure */
 	if (priv->overlay) {
 		SDL_FreeYUVOverlay(priv->overlay);
@@ -1250,15 +1253,9 @@
 				}	
 
                                 else switch(keypressed){
-				case SDLK_RETURN:
-					SDL_ShowCursor(1);
-					mplayer_put_key(KEY_ENTER);
-				break;
-                                case SDLK_ESCAPE:
-				case SDLK_q:
-					SDL_ShowCursor(1);
-					mplayer_put_key('q');
-				break;
+				case SDLK_RETURN: mplayer_put_key(KEY_ENTER);break;
+				case SDLK_ESCAPE: mplayer_put_key(KEY_ESC);break;
+				case SDLK_q: mplayer_put_key('q');break;
                                 /*case SDLK_o: mplayer_put_key('o');break;
                                 case SDLK_SPACE: mplayer_put_key(' ');break;
                                 case SDLK_p: mplayer_put_key('p');break;*/
@@ -1298,10 +1295,7 @@
                                 }
                                 
 				break;
-				case SDL_QUIT:
-					SDL_ShowCursor(1);
-					mplayer_put_key('q');
-				break;
+				case SDL_QUIT: mplayer_put_key('q');break;
 		}
 	}
 }



More information about the MPlayer-cvslog mailing list