From: Rudolf Polzer Date: Sat, 7 May 2011 15:19:08 +0000 (+0200) Subject: fix call to setDependent X-Git-Tag: xonotic-v0.5.0~20^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ccc9d12494eec04c3d2cedd07385cf8df46f6daf;p=xonotic%2Fxonotic-data.pk3dir.git fix call to setDependent --- diff --git a/qcsrc/menu/xonotic/dialog_settings_video.c b/qcsrc/menu/xonotic/dialog_settings_video.c index 46735beb3..b1907b604 100644 --- a/qcsrc/menu/xonotic/dialog_settings_video.c +++ b/qcsrc/menu/xonotic/dialog_settings_video.c @@ -84,14 +84,14 @@ void XonoticVideoSettingsTab_fill(entity me) me.TD(me, 1, 2, e = makeXonoticSlider(1.0, 3.0, 0.05, "v_contrast")); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Gamma:"))); - setDependent(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); + setDependentAND(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); me.TD(me, 1, 2, e = makeXonoticSlider(0.5, 2.0, 0.05, "v_gamma")); - setDependent(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); + setDependentAND(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Contrast boost:"))); - setDependent(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); + setDependentAND(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); me.TD(me, 1, 2, e = makeXonoticSlider(1.0, 5.0, 0.1, "v_contrastboost")); - setDependent(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); + setDependentAND(e, "r_glsl", 1, 1, "v_glslgamma", 1, 1); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Saturation:"))); setDependent(e, "r_glsl", 1, 1);