From 37a482e2b7e0fdb3f7d99caa7b8faefe53a5e210 Mon Sep 17 00:00:00 2001 From: atmosfear Date: Sun, 22 Apr 2001 10:45:01 +0000 Subject: [PATCH] Reincluded fastmemcpy.h and added some keybindings for mixer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@576 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_sdl.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 21af0f3ca1..384f31290b 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -89,10 +89,7 @@ #include "video_out.h" #include "video_out_internal.h" -/* FIXME: MPlayer crashes in fastmemcpy.h when SDL_NOXV is defined! */ -#ifndef SDL_NOXV #include "fastmemcpy.h" -#endif LIBVO_EXTERN(sdl) @@ -386,7 +383,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 { struct sdl_priv_s *priv = &sdl_priv; unsigned int sdl_format; - + sdl_format = format; switch(format){ case IMGFMT_YV12: @@ -664,16 +661,22 @@ static void check_events (void) mplayer_put_key('q'); break; /*case SDLK_o: mplayer_put_key('o');break; - case SDLK_p: mplayer_put_key('p');break; - case SDLK_SPACE: mplayer_put_key(' ');break;*/ + case SDLK_SPACE: mplayer_put_key(' ');break; + case SDLK_p: mplayer_put_key('p');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; case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break; - /*case SDLK_PLUS: + case SDLK_PLUS: case SDLK_KP_PLUS: mplayer_put_key('+');break; case SDLK_MINUS: - case SDLK_KP_MINUS: mplayer_put_key('-');break;*/ + case SDLK_KP_MINUS: mplayer_put_key('-');break; + case SDLK_ASTERISK: + case SDLK_KP_MULTIPLY: + case SDLK_w: mplayer_put_key('*');break; + case SDLK_SLASH: + case SDLK_KP_DIVIDE: + case SDLK_s: mplayer_put_key('/');break; default: mplayer_put_key(keypressed); }