[Mplayer-cvslog] CVS: main mplayer.c,1.220,1.221
Adam Tla/lka
atlka at mplayer.dev.hu
Thu Aug 16 11:25:34 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv15213
Modified Files:
mplayer.c
Log Message:
changes according to proper subfont bar positioning and char spaceing - sub.c
changes to scale from 0.100 to 0..255 for proper OSD displaying - mplayer.c
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -r1.220 -r1.221
--- mplayer.c 16 Aug 2001 01:03:51 -0000 1.220
+++ mplayer.c 16 Aug 2001 09:25:31 -0000 1.221
@@ -1560,7 +1560,7 @@
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_VOLUME;
- vo_osd_progbar_value=(mixer_l+mixer_r)*5/4;
+ vo_osd_progbar_value=(mixer_l+mixer_r)*255/200;
//printf("volume: %d\n",vo_osd_progbar_value);
}
#endif
@@ -1583,7 +1583,7 @@
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_CONTRAST;
- vo_osd_progbar_value=(v_cont)*10/4;
+ vo_osd_progbar_value=(v_cont)*255/100;
}
#endif
}
@@ -1602,7 +1602,7 @@
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_BRIGHTNESS;
- vo_osd_progbar_value=(v_bright)*10/4;
+ vo_osd_progbar_value=(v_bright)*255/100;
}
#endif
}
@@ -1621,7 +1621,7 @@
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_HUE;
- vo_osd_progbar_value=(v_hue)*10/4;
+ vo_osd_progbar_value=(v_hue)*255/100;
}
#endif
}
@@ -1640,7 +1640,7 @@
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_SATURATION;
- vo_osd_progbar_value=(v_saturation)*10/4;
+ vo_osd_progbar_value=(v_saturation)*255/100;
}
#endif
}
More information about the MPlayer-cvslog
mailing list