aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.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-base.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-base.c')
-rw-r--r--src/cg-base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cg-base.c b/src/cg-base.c
index 2de0abc..c0abf47 100644
--- a/src/cg-base.c
+++ b/src/cg-base.c
@@ -61,6 +61,11 @@ libcoopgamma_crtc_info_t* crtc_info = NULL;
*/
size_t crtcs_n = 0;
+/**
+ * The number of filters
+ */
+size_t filters_n = 0;
+
/**
* Contexts for asynchronous ramp updates
@@ -724,6 +729,7 @@ int main(int argc, char* argv[])
dealloc_crtcs = 1;
for (; crtcs[crtcs_n] != NULL; crtcs_n++);
}
+ filters_n = crtcs_n;
if (crtcs_n == 0)
{