[Mplayer-cvslog] CVS: main/libvo vo_mga.c,1.15,1.16

Atmosfear atmos4 at mplayer.dev.hu
Sun Oct 21 00:29:32 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv5451/libvo

Modified Files:
	vo_mga.c 
Log Message:
Aspect support for vo_mga, you need to use -screenw and -screenh to set your current screen res. Untested!


Index: vo_mga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_mga.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vo_mga.c	22 Aug 2001 21:34:27 -0000	1.15
+++ vo_mga.c	20 Oct 2001 22:29:29 -0000	1.16
@@ -41,6 +41,7 @@
 
 #include "drivers/mga_vid.h"
 #include "sub.h"
+#include "aspect.h"
 
 static vo_info_t vo_info = 
 {
@@ -57,6 +58,18 @@
 init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format)
 {
 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)




More information about the MPlayer-cvslog mailing list