[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.100,1.101

Alex Beregszaszi alex at mplayerhq.hu
Sun Mar 23 18:35:51 CET 2003


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

Modified Files:
	vo_sdl.c 
Log Message:
pass correct key for ESCAPE, bug noticed by Vladimir Mosgalin <mosgalin at VM10124.spb.edu> and moved SDL_ShowCursor from the check_keys() to uninit() (by me)

Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- vo_sdl.c	9 Feb 2003 20:18:23 -0000	1.100
+++ vo_sdl.c	23 Mar 2003 17:35:26 -0000	1.101
@@ -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