Mercurial > mplayer.hg
changeset 2317:1f1880196a1c
Aspect support for vo_mga, you need to use -screenw and -screenh to set your current screen res. Untested!
author | atmos4 |
---|---|
date | Sat, 20 Oct 2001 22:29:29 +0000 |
parents | bcb229557e9b |
children | d67dac5d9344 |
files | cfg-mplayer.h libvo/vo_mga.c |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-mplayer.h Sat Oct 20 21:12:09 2001 +0000 +++ b/cfg-mplayer.h Sat Oct 20 22:29:29 2001 +0000 @@ -230,6 +230,8 @@ {"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, {"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, + {"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, + {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0}, {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0}, {"monitoraspect", &monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0},
--- a/libvo/vo_mga.c Sat Oct 20 21:12:09 2001 +0000 +++ b/libvo/vo_mga.c Sat Oct 20 22:29:29 2001 +0000 @@ -41,6 +41,7 @@ #include "drivers/mga_vid.h" #include "sub.h" +#include "aspect.h" static vo_info_t vo_info = { @@ -58,6 +59,18 @@ { char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; + if(vo_screenwidth && vo_screenheight){ + aspect_save_orig(width,height); + aspect_save_prescale(d_width,d_height); + aspect_save_screenres(vo_screenwidth,vo_screenheight); + + if(fullscreen&0x01) /* -fs */ + aspect(&d_width,&d_height,A_NOZOOM); + else + aspect(&d_width,&d_height,A_NOZOOM); + } + + f = open(devname,O_RDWR); if(f == -1) {