comparison libvo/vo_sdl.c @ 265:1d02e6f7c63a

Only small change to allow pausing of movie (p or SPACE).
author atmosfear
date Sun, 01 Apr 2001 00:08:26 +0000
parents cab74dfde6dd
children 0f1737e626fa
comparison
equal deleted inserted replaced
264:39afcd42f63e 265:1d02e6f7c63a
493 493
494 494
495 /* graphics mode selection shortcuts */ 495 /* graphics mode selection shortcuts */
496 case SDL_KEYDOWN: 496 case SDL_KEYDOWN:
497 keypressed = event.key.keysym.sym; 497 keypressed = event.key.keysym.sym;
498 498
499 /* plus key pressed. plus cycles through available fullscreenmodes, if we have some */ 499 /* plus key pressed. plus cycles through available fullscreenmodes, if we have some */
500 if ( ((keypressed == SDLK_PLUS) || (keypressed == SDLK_KP_PLUS)) && (priv->fullmodes) ) { 500 if ( ((keypressed == SDLK_PLUS) || (keypressed == SDLK_KP_PLUS)) && (priv->fullmodes) ) {
501 /* select next fullscreen mode */ 501 /* select next fullscreen mode */
502 priv->fullmode++; 502 priv->fullmode++;
503 if (priv->fullmode > (findArrayEnd(priv->fullmodes) - 1)) priv->fullmode = 0; 503 if (priv->fullmode > (findArrayEnd(priv->fullmodes) - 1)) priv->fullmode = 0;
506 // LOG (LOG_DEBUG, "SDL video out: Set next available fullscreen mode."); 506 // LOG (LOG_DEBUG, "SDL video out: Set next available fullscreen mode.");
507 } 507 }
508 508
509 /* return or escape key pressed toggles/exits fullscreenmode */ 509 /* return or escape key pressed toggles/exits fullscreenmode */
510 else if ( (keypressed == SDLK_RETURN) || (keypressed == SDLK_ESCAPE) ) { 510 else if ( (keypressed == SDLK_RETURN) || (keypressed == SDLK_ESCAPE) ) {
511 if (priv->surface->flags & SDL_FULLSCREEN) { 511 if (priv->surface->flags & SDL_FULLSCREEN) {
512 priv->surface = SDL_SetVideoMode(priv->windowsize.w, priv->windowsize.h, priv->bpp, priv->sdlflags); 512 priv->surface = SDL_SetVideoMode(priv->windowsize.w, priv->windowsize.h, priv->bpp, priv->sdlflags);
513 SDL_ShowCursor(1); 513 SDL_ShowCursor(1);
514 // LOG (LOG_DEBUG, "SDL video out: Windowed mode"); 514 // LOG (LOG_DEBUG, "SDL video out: Windowed mode");
515 } 515 }
516 else if (priv->fullmodes){ 516 else if (priv->fullmodes){
521 } 521 }
522 522
523 else switch(keypressed){ 523 else switch(keypressed){
524 // case SDLK_q: if(!(priv->surface->flags & SDL_FULLSCREEN))mplayer_put_key('q');break; 524 // case SDLK_q: if(!(priv->surface->flags & SDL_FULLSCREEN))mplayer_put_key('q');break;
525 case SDLK_q: SDL_ShowCursor(1); mplayer_put_key('q');break; //F.B.: added ShowCursor 525 case SDLK_q: SDL_ShowCursor(1); mplayer_put_key('q');break; //F.B.: added ShowCursor
526 // case SDLK_p: mplayer_put_key('p');break; 526 case SDLK_p: mplayer_put_key('p');break;
527 // case SDLK_SPACE: mplayer_put_key(' ');break; 527 case SDLK_SPACE: mplayer_put_key(' ');break;
528 case SDLK_UP: mplayer_put_key(KEY_UP);break; 528 case SDLK_UP: mplayer_put_key(KEY_UP);break;
529 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break; 529 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break;
530 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break; 530 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break;
531 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break; 531 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break;
532 case SDLK_PLUS: 532 case SDLK_PLUS: