Mercurial > mplayer.hg
diff mplayer.c @ 1548:eee7951a23af
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
author | atlka |
---|---|
date | Thu, 16 Aug 2001 09:25:32 +0000 |
parents | d4cd08b06665 |
children | 9fa2a290fa99 |
line wrap: on
line diff
--- a/mplayer.c Thu Aug 16 01:04:28 2001 +0000 +++ b/mplayer.c Thu Aug 16 09:25:32 2001 +0000 @@ -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 }