diff options
author | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-01 00:08:26 +0000 |
---|---|---|
committer | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-01 00:08:26 +0000 |
commit | e53a961525ab15dc82794a2a06da6c7b6d7f1418 (patch) | |
tree | 9c05641adae9c41d9dcf9022b23b05e1c0ae70c3 /libvo/vo_sdl.c | |
parent | da6a03eec8c043adced18f041725917b3891e32e (diff) | |
download | mpv-e53a961525ab15dc82794a2a06da6c7b6d7f1418.tar.bz2 mpv-e53a961525ab15dc82794a2a06da6c7b6d7f1418.tar.xz |
Only small change to allow pausing of movie (p or SPACE).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@266 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r-- | libvo/vo_sdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index c364f2ba43..f742b9a578 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -495,7 +495,7 @@ static void check_events (void) /* graphics mode selection shortcuts */ 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) ) { /* select next fullscreen mode */ @@ -508,7 +508,7 @@ static void check_events (void) /* return or escape key pressed toggles/exits fullscreenmode */ else if ( (keypressed == SDLK_RETURN) || (keypressed == SDLK_ESCAPE) ) { - if (priv->surface->flags & SDL_FULLSCREEN) { + if (priv->surface->flags & SDL_FULLSCREEN) { priv->surface = SDL_SetVideoMode(priv->windowsize.w, priv->windowsize.h, priv->bpp, priv->sdlflags); SDL_ShowCursor(1); // LOG (LOG_DEBUG, "SDL video out: Windowed mode"); @@ -523,8 +523,8 @@ static void check_events (void) else switch(keypressed){ // 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_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; case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break; |