# HG changeset patch # User reimar # Date 1126740104 0 # Node ID 3092afa97d3651949dc2fb5f778069ef270a4270 # Parent 3191dcb27a12cca58bcfe7a29495ab20e751952d consistency fix: OSD bar for gamma changes should only appear when gamma changing gamma is supported (like all other equalizer controls). diff -r 3191dcb27a12 -r 3092afa97d36 mplayer.c --- a/mplayer.c Wed Sep 14 22:08:04 2005 +0000 +++ b/mplayer.c Wed Sep 14 23:21:44 2005 +0000 @@ -3120,7 +3120,7 @@ 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 @@ 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;