aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-darkroom.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-18 19:48:56 +0100
committerMattias Andrée <maandree@kth.se>2016-12-18 19:48:56 +0100
commit0270fcba233754779cbf8c11d2ff22d8ecded556 (patch)
treebf349f9c08ab736116d609b0cb43d92e2c8d360e /src/cg-darkroom.c
parentcg-base: Add NO_DEFAULT_PRIORITY (diff)
downloadcg-tools-0270fcba233754779cbf8c11d2ff22d8ecded556.tar.gz
cg-tools-0270fcba233754779cbf8c11d2ff22d8ecded556.tar.bz2
cg-tools-0270fcba233754779cbf8c11d2ff22d8ecded556.tar.xz
cg-base: add filters_n
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-darkroom.c')
-rw-r--r--src/cg-darkroom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cg-darkroom.c b/src/cg-darkroom.c
index 8d7d7fd..06655e6 100644
--- a/src/cg-darkroom.c
+++ b/src/cg-darkroom.c
@@ -250,20 +250,20 @@ int start(void)
size_t i, j;
if (xflag)
- for (i = 0; i < crtcs_n; i++)
+ for (i = 0; i < filters_n; i++)
crtc_updates[i].filter.lifespan = LIBCOOPGAMMA_REMOVE;
else if (dflag)
- for (i = 0; i < crtcs_n; i++)
+ for (i = 0; i < filters_n; i++)
crtc_updates[i].filter.lifespan = LIBCOOPGAMMA_UNTIL_DEATH;
else
- for (i = 0; i < crtcs_n; i++)
+ for (i = 0; i < filters_n; i++)
crtc_updates[i].filter.lifespan = LIBCOOPGAMMA_UNTIL_REMOVAL;
if (!xflag)
if ((r = make_slaves()) < 0)
return r;
- for (i = 0, r = 1; i < crtcs_n; i++)
+ for (i = 0, r = 1; i < filters_n; i++)
{
if (!(crtc_updates[i].master) || !(crtc_info[i].supported))
continue;