changeset 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 3191dcb27a12
children f17b3c152fd6
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;