Mercurial > mplayer.hg
comparison libvo/vo_sdl.c @ 575:3fde7340afd5
Reincluded fastmemcpy.h and added some keybindings for mixer.
author | atmosfear |
---|---|
date | Sun, 22 Apr 2001 10:45:01 +0000 |
parents | ee0010d0ca81 |
children | 256f3d32a4af |
comparison
equal
deleted
inserted
replaced
574:cd093f24709f | 575:3fde7340afd5 |
---|---|
87 | 87 |
88 #include "config.h" | 88 #include "config.h" |
89 #include "video_out.h" | 89 #include "video_out.h" |
90 #include "video_out_internal.h" | 90 #include "video_out_internal.h" |
91 | 91 |
92 /* FIXME: MPlayer crashes in fastmemcpy.h when SDL_NOXV is defined! */ | |
93 #ifndef SDL_NOXV | |
94 #include "fastmemcpy.h" | 92 #include "fastmemcpy.h" |
95 #endif | |
96 | 93 |
97 LIBVO_EXTERN(sdl) | 94 LIBVO_EXTERN(sdl) |
98 | 95 |
99 //#include "log.h" | 96 //#include "log.h" |
100 //#define LOG if(0)printf | 97 //#define LOG if(0)printf |
384 init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format) | 381 init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format) |
385 //static int sdl_setup (int width, int height) | 382 //static int sdl_setup (int width, int height) |
386 { | 383 { |
387 struct sdl_priv_s *priv = &sdl_priv; | 384 struct sdl_priv_s *priv = &sdl_priv; |
388 unsigned int sdl_format; | 385 unsigned int sdl_format; |
389 | 386 |
390 sdl_format = format; | 387 sdl_format = format; |
391 switch(format){ | 388 switch(format){ |
392 case IMGFMT_YV12: | 389 case IMGFMT_YV12: |
393 if(verbose) printf("SDL: Using 0x%X (YV12) image format\n", format); break; | 390 if(verbose) printf("SDL: Using 0x%X (YV12) image format\n", format); break; |
394 case IMGFMT_IYUV: | 391 case IMGFMT_IYUV: |
662 case SDLK_q: | 659 case SDLK_q: |
663 SDL_ShowCursor(1); | 660 SDL_ShowCursor(1); |
664 mplayer_put_key('q'); | 661 mplayer_put_key('q'); |
665 break; | 662 break; |
666 /*case SDLK_o: mplayer_put_key('o');break; | 663 /*case SDLK_o: mplayer_put_key('o');break; |
667 case SDLK_p: mplayer_put_key('p');break; | 664 case SDLK_SPACE: mplayer_put_key(' ');break; |
668 case SDLK_SPACE: mplayer_put_key(' ');break;*/ | 665 case SDLK_p: mplayer_put_key('p');break;*/ |
669 case SDLK_UP: mplayer_put_key(KEY_UP);break; | 666 case SDLK_UP: mplayer_put_key(KEY_UP);break; |
670 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break; | 667 case SDLK_DOWN: mplayer_put_key(KEY_DOWN);break; |
671 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break; | 668 case SDLK_LEFT: mplayer_put_key(KEY_LEFT);break; |
672 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break; | 669 case SDLK_RIGHT: mplayer_put_key(KEY_RIGHT);break; |
673 /*case SDLK_PLUS: | 670 case SDLK_PLUS: |
674 case SDLK_KP_PLUS: mplayer_put_key('+');break; | 671 case SDLK_KP_PLUS: mplayer_put_key('+');break; |
675 case SDLK_MINUS: | 672 case SDLK_MINUS: |
676 case SDLK_KP_MINUS: mplayer_put_key('-');break;*/ | 673 case SDLK_KP_MINUS: mplayer_put_key('-');break; |
674 case SDLK_ASTERISK: | |
675 case SDLK_KP_MULTIPLY: | |
676 case SDLK_w: mplayer_put_key('*');break; | |
677 case SDLK_SLASH: | |
678 case SDLK_KP_DIVIDE: | |
679 case SDLK_s: mplayer_put_key('/');break; | |
677 default: | 680 default: |
678 mplayer_put_key(keypressed); | 681 mplayer_put_key(keypressed); |
679 } | 682 } |
680 | 683 |
681 break; | 684 break; |