aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-gamma.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cg-gamma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cg-gamma.c b/src/cg-gamma.c
index 7a51ba0..27e8433 100644
--- a/src/cg-gamma.c
+++ b/src/cg-gamma.c
@@ -476,7 +476,7 @@ int start(void)
if (names == NULL)
for (i = 0, r = 1; i < filters_n; i++)
{
- if (!(crtc_updates[i].master) || !(crtc_info[i].supported))
+ if (!(crtc_updates[i].master) || !(crtc_info[crtc_updates[i].crtc].supported))
continue;
if (!xflag)
fill_filter(&(crtc_updates[i].filter), rgamma, ggamma, bgamma);
@@ -494,7 +494,7 @@ int start(void)
else
for (i = 0, r = 1; i < filters_n; i++)
{
- if (!(crtc_info[i].supported))
+ if (!(crtc_info[crtc_updates[i].crtc].supported))
continue;
for (j = 0; names[j] != NULL; j++)
if (!strcasecmp(crtc_updates[i].filter.crtc, names[j]))