[Mplayer-cvslog] CVS: main/libvo sub.c,1.64,1.65 sub.h,1.25,1.26

Dominik Mierzejewski CVS rathann at mplayerhq.hu
Sat Dec 28 16:03:27 CET 2002


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

Modified Files:
	sub.c sub.h 
Log Message:
Me: -sub-bg-* would be nicer. "Background" is usually shortened as "bg", not "bkg".
Arpi: feel free to change... ASAP :)


Index: sub.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- sub.c	28 Dec 2002 13:41:02 -0000	1.64
+++ sub.c	28 Dec 2002 15:03:23 -0000	1.65
@@ -40,8 +40,8 @@
 int sub_width_p=100;
 int sub_alignment=0; /* 0=top, 1=center, 2=bottom */
 int sub_visibility=1;
-int sub_bkg_color=0; /* subtitles background color */
-int sub_bkg_alpha=0;
+int sub_bg_color=0; /* subtitles background color */
+int sub_bg_alpha=0;
 
 // return the real height of a char:
 static inline int get_height(int c,int h){
@@ -99,8 +99,8 @@
 	obj->bitmap_buffer = (unsigned char *)memalign(16, len);
 	obj->alpha_buffer = (unsigned char *)memalign(16, len);
     }
-    memset(obj->bitmap_buffer, sub_bkg_color, len);
-    memset(obj->alpha_buffer, sub_bkg_alpha, len);
+    memset(obj->bitmap_buffer, sub_bg_color, len);
+    memset(obj->alpha_buffer, sub_bg_alpha, len);
 }
 
 // renders the buffer

Index: sub.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- sub.h	28 Dec 2002 13:41:02 -0000	1.25
+++ sub.h	28 Dec 2002 15:03:23 -0000	1.26
@@ -101,8 +101,8 @@
 extern int sub_alignment;
 extern int sub_visibility;
 extern int suboverlap_enabled;
-extern int sub_bkg_color; /* subtitles background color */
-extern int sub_bkg_alpha;
+extern int sub_bg_color; /* subtitles background color */
+extern int sub_bg_alpha;
 
 //extern 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));
 //extern void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));




More information about the MPlayer-cvslog mailing list