consistency fix: OSD bar for gamma changes should only appear when gamma

changing gamma is supported (like all other equalizer controls).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16490 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-09-14 23:21:44 +00:00
parent 4e60e039f5
commit 3bd4205297
1 changed files with 2 additions and 1 deletions

View File

@ -3120,7 +3120,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
vo_gamma_gamma = 100;
else if (vo_gamma_gamma < -100)
vo_gamma_gamma = -100;
set_video_colors(sh_video, "gamma", vo_gamma_gamma);
if (set_video_colors(sh_video, "gamma", vo_gamma_gamma)){
#ifdef USE_OSD
if(osd_level){
osd_visible=sh_video->fps; // 1 sec
@ -3129,6 +3129,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
vo_osd_changed(OSDTYPE_PROGBAR);
}
#endif // USE_OSD
}
} break;
case MP_CMD_BRIGHTNESS : {
int v = cmd->args[0].v.i, abs = cmd->args[1].v.i;