[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.4,1.5

Felix Buenemann atmosfear at users.sourceforge.net
Sun Apr 1 02:08:28 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv2649

Modified Files:
	vo_sdl.c 
Log Message:
Only small change to allow pausing of movie (p or SPACE).


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** vo_sdl.c	2001/03/12 17:20:48	1.4
--- vo_sdl.c	2001/04/01 00:08:26	1.5
***************
*** 496,500 ****
  			case SDL_KEYDOWN:
  				keypressed = event.key.keysym.sym;
! 				
  				/* plus key pressed. plus cycles through available fullscreenmodes, if we have some */
  				if ( ((keypressed == SDLK_PLUS) || (keypressed == SDLK_KP_PLUS)) && (priv->fullmodes) ) {
--- 496,500 ----
  			case SDL_KEYDOWN:
  				keypressed = event.key.keysym.sym;
! 
  				/* plus key pressed. plus cycles through available fullscreenmodes, if we have some */
  				if ( ((keypressed == SDLK_PLUS) || (keypressed == SDLK_KP_PLUS)) && (priv->fullmodes) ) {
***************
*** 509,513 ****
  				/* return or escape key pressed toggles/exits fullscreenmode */
  				else if ( (keypressed == SDLK_RETURN) || (keypressed == SDLK_ESCAPE) ) {
! 				 	if (priv->surface->flags & SDL_FULLSCREEN) {
  						priv->surface = SDL_SetVideoMode(priv->windowsize.w, priv->windowsize.h, priv->bpp, priv->sdlflags);
  						SDL_ShowCursor(1);
--- 509,513 ----
  				/* return or escape key pressed toggles/exits fullscreenmode */
  				else if ( (keypressed == SDLK_RETURN) || (keypressed == SDLK_ESCAPE) ) {
! 					if (priv->surface->flags & SDL_FULLSCREEN) {
  						priv->surface = SDL_SetVideoMode(priv->windowsize.w, priv->windowsize.h, priv->bpp, priv->sdlflags);
  						SDL_ShowCursor(1);
***************
*** 524,529 ****
  //                                case SDLK_q: if(!(priv->surface->flags & SDL_FULLSCREEN))mplayer_put_key('q');break;
                                  case SDLK_q: SDL_ShowCursor(1); mplayer_put_key('q');break; //F.B.: added ShowCursor
! //                                case SDLK_p: mplayer_put_key('p');break;
! //                                case SDLK_SPACE: mplayer_put_key(' ');break;
                                  case SDLK_UP: mplayer_put_key(KEY_UP);break;
                                  case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;
--- 524,529 ----
  //                                case SDLK_q: if(!(priv->surface->flags & SDL_FULLSCREEN))mplayer_put_key('q');break;
                                  case SDLK_q: SDL_ShowCursor(1); mplayer_put_key('q');break; //F.B.: added ShowCursor
!                                 case SDLK_p: mplayer_put_key('p');break;
!                                 case SDLK_SPACE: mplayer_put_key(' ');break;
                                  case SDLK_UP: mplayer_put_key(KEY_UP);break;
                                  case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list