comparison mplayer.c @ 16489:3092afa97d36

consistency fix: OSD bar for gamma changes should only appear when gamma changing gamma is supported (like all other equalizer controls).
author reimar
date Wed, 14 Sep 2005 23:21:44 +0000
parents c82c0d407ec9
children f17b3c152fd6
comparison
equal deleted inserted replaced
16488:3191dcb27a12 16489:3092afa97d36
3118 3118
3119 if (vo_gamma_gamma > 100) 3119 if (vo_gamma_gamma > 100)
3120 vo_gamma_gamma = 100; 3120 vo_gamma_gamma = 100;
3121 else if (vo_gamma_gamma < -100) 3121 else if (vo_gamma_gamma < -100)
3122 vo_gamma_gamma = -100; 3122 vo_gamma_gamma = -100;
3123 set_video_colors(sh_video, "gamma", vo_gamma_gamma); 3123 if (set_video_colors(sh_video, "gamma", vo_gamma_gamma)){
3124 #ifdef USE_OSD 3124 #ifdef USE_OSD
3125 if(osd_level){ 3125 if(osd_level){
3126 osd_visible=sh_video->fps; // 1 sec 3126 osd_visible=sh_video->fps; // 1 sec
3127 vo_osd_progbar_type=OSD_BRIGHTNESS; 3127 vo_osd_progbar_type=OSD_BRIGHTNESS;
3128 vo_osd_progbar_value=(vo_gamma_gamma<<7)/100 + 128; 3128 vo_osd_progbar_value=(vo_gamma_gamma<<7)/100 + 128;
3129 vo_osd_changed(OSDTYPE_PROGBAR); 3129 vo_osd_changed(OSDTYPE_PROGBAR);
3130 } 3130 }
3131 #endif // USE_OSD 3131 #endif // USE_OSD
3132 }
3132 } break; 3133 } break;
3133 case MP_CMD_BRIGHTNESS : { 3134 case MP_CMD_BRIGHTNESS : {
3134 int v = cmd->args[0].v.i, abs = cmd->args[1].v.i; 3135 int v = cmd->args[0].v.i, abs = cmd->args[1].v.i;
3135 3136
3136 if (!sh_video) 3137 if (!sh_video)