diff options
author | mgraffam <mgraffam@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-24 21:36:15 +0000 |
---|---|---|
committer | mgraffam <mgraffam@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-24 21:36:15 +0000 |
commit | 963dc170cffc666cd8db08d8fe1bdec3f0badd64 (patch) | |
tree | 0ca86ecaae71c62e50f07f6a1d0655774818f5a5 | |
parent | c18846af072dd295100a2abd895dbb1d13ea6512 (diff) |
Adds code to deal with vidmode selection. -- mgraffam
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@209 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mplayer.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -399,6 +399,9 @@ char* title="MPlayer"; // screen info: char* video_driver=NULL; //"mga"; // default int fullscreen=0; +#ifdef HAVE_XF86VM +int vidmode=0; +#endif int screen_size_x=SCREEN_SIZE_X; int screen_size_y=SCREEN_SIZE_Y; int screen_size_xy=0; @@ -470,6 +473,12 @@ if(video_driver && strcmp(video_driver,"help")==0){ return 0; } +#ifdef HAVE_XF86VM +if (!video_driver) + vidmode=0; +else if (strcmp(video_driver,"x11")) + vidmode=0; +#endif if(!filename){ if(vcd_track) filename="/dev/cdrom"; @@ -1047,6 +1056,12 @@ make_pipe(&keyb_fifo_get,&keyb_fifo_put); } #endif +#ifdef HAVE_XF86VM + if (vidmode) { + if ( screen_size_x == SCREEN_SIZE_X ) screen_size_x = 0; + if ( screen_size_y == SCREEN_SIZE_Y ) screen_size_y = 0; + } else +#endif if(screen_size_xy>0){ if(screen_size_xy<=8){ screen_size_x=screen_size_xy*movie_size_x; @@ -1059,6 +1074,7 @@ make_pipe(&keyb_fifo_get,&keyb_fifo_put); if(screen_size_x<=8) screen_size_x*=movie_size_x; if(screen_size_y<=8) screen_size_y*=movie_size_y; } + if(verbose) printf("Destination size: %d x %d out_fmt=%0X\n", screen_size_x,screen_size_y,out_fmt); |