aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-gamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-18 20:11:51 +0100
committerMattias Andrée <maandree@kth.se>2016-12-18 20:11:51 +0100
commit8e58eab57831515ed6cf4cc04f55db00d431ef84 (patch)
treed32af7312ea5f8fb81721f856ae681c9adca30b4 /src/cg-gamma.c
parentcg-base: add filters_n (diff)
downloadcg-tools-8e58eab57831515ed6cf4cc04f55db00d431ef84.tar.gz
cg-tools-8e58eab57831515ed6cf4cc04f55db00d431ef84.tar.bz2
cg-tools-8e58eab57831515ed6cf4cc04f55db00d431ef84.tar.xz
struct filter_update: add crtc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-gamma.c')
-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]))