From 0270fcba233754779cbf8c11d2ff22d8ecded556 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Dec 2016 19:48:56 +0100 Subject: cg-base: add filters_n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-base.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cg-base.c') 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) { -- cgit v1.2.3-70-g09d2