summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-02-12 16:52:23 +0000
committerUoti Urpala <uau@mplayer2.org>2011-04-12 18:41:26 +0300
commitc246c09b0398e3a5a74b61ee40788a7508f54de3 (patch)
tree95ed522adfceb97235120b370fdb886380a96e94 /libvo
parent4726be4314494b7e76165aadb7069b953856341c (diff)
downloadmpv-c246c09b0398e3a5a74b61ee40788a7508f54de3.tar.bz2
mpv-c246c09b0398e3a5a74b61ee40788a7508f54de3.tar.xz
vo_gl: fix "gamma" equalizer setting
The "gamma" setting only changed red gamma. Fix it to change all of red, green and blue gamma. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32895 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index d2f98a26fe..e663057beb 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -1393,6 +1393,8 @@ static int control(uint32_t request, void *data)
if (!(eq_map[i].supportmask & (1 << use_yuv)))
break;
*eq_map[i].value = args->value;
+ if (strcmp(args->name, "gamma") == 0)
+ eq_rgamma = eq_ggamma = eq_bgamma = args->value;
update_yuvconv();
return VO_TRUE;
}