[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.116,1.117

David Holm CVS mswitch at mplayerhq.hu
Wed Feb 19 00:23:00 CET 2003


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

Modified Files:
	vo_dxr3.c 
Log Message:
Patch from Tamas Kohegyi to fix subpic placement on 16:9

Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- vo_dxr3.c	12 Jan 2003 19:32:56 -0000	1.116
+++ vo_dxr3.c	18 Feb 2003 23:22:44 -0000	1.117
@@ -6,6 +6,9 @@
  */
 
 /* ChangeLog added 2002-01-10
+ * 2003-02-19:
+ *  Yet another patch from Tamas Kohegyi to fix subpic placement.
+ *
  * 2003-01-12:
  *  Added patch from Tamas Kohegyi to fix subpic placement with freetype.
  *
@@ -531,10 +534,11 @@
 #ifdef SPU_SUPPORT
 #ifdef HAVE_FREETYPE
 	if (ioval == EM8300_ASPECTRATIO_16_9) {
-		s_width *= 1.5;
+		s_width *= d_height*1.78/s_height*(d_width*1.0/d_height)/2.35;
 	} else {
 		s_width *= 0.84;
 	}
+	//printf("VO: [dxr3] sw/sh:dw/dh ->%i,%i,%i,%i\n",s_width,s_height,d_width,d_height);
 #else
 	s_width*=2;
 	s_height*=2;



More information about the MPlayer-cvslog mailing list