summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 22:29:29 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 22:29:29 +0000
commit612ba8077fbcfa16970741eb5552f6b0fb9b874d (patch)
tree73c07bd4fe8a405ed74e6e899d7ab2ef8bb334ae /libvo
parent99a2f8a751ad583ba190f46425fd0a33470e893c (diff)
downloadmpv-612ba8077fbcfa16970741eb5552f6b0fb9b874d.tar.bz2
mpv-612ba8077fbcfa16970741eb5552f6b0fb9b874d.tar.xz
Aspect support for vo_mga, you need to use -screenw and -screenh to set your current screen res. Untested!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2318 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_mga.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
index 7cc5f7417f..bd5c5bcdf8 100644
--- a/libvo/vo_mga.c
+++ b/libvo/vo_mga.c
@@ -41,6 +41,7 @@ LIBVO_EXTERN(mga)
#include "drivers/mga_vid.h"
#include "sub.h"
+#include "aspect.h"
static vo_info_t vo_info =
{
@@ -58,6 +59,18 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
{
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)
{