[Mplayer-cvslog] CVS: main/libvo sub.c,1.41,1.42

Atmosfear atmos4 at mplayer.dev.hu
Wed Feb 20 23:43:37 CET 2002


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

Modified Files:
	sub.c 
Log Message:
subtitle positioning patch by Jiri Svoboda

Index: sub.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- sub.c	11 Jan 2002 16:06:45 -0000	1.41
+++ sub.c	20 Feb 2002 22:43:34 -0000	1.42
@@ -27,6 +27,7 @@
 unsigned char* vo_osd_text=NULL;
 int sub_unicode=0;
 int sub_utf8=0;
+int sub_pos=100;
 
 inline static void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){
 	unsigned char *cp=vo_osd_text;
@@ -252,7 +253,7 @@
       }
    }
    
-   y = memy;
+   if (memy < (dys * sub_pos / 100)) { y = memy; } else { y = dys * sub_pos /100;};
    
 //   printf("lines=%d  y=%d\n",lines,y);
 




More information about the MPlayer-cvslog mailing list