diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-18 18:48:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-18 18:59:43 +0100 |
commit | a651b51ed08f7fa04e25759b6e96a02d6dbbcb70 (patch) | |
tree | 3267ae0b0f39c31518feafeb6f0c58a4c2ab5256 | |
parent | cg-query: print white point (diff) | |
download | cg-tools-a651b51ed08f7fa04e25759b6e96a02d6dbbcb70.tar.gz cg-tools-a651b51ed08f7fa04e25759b6e96a02d6dbbcb70.tar.bz2 cg-tools-a651b51ed08f7fa04e25759b6e96a02d6dbbcb70.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | man/cg-darkroom.1 | 2 | ||||
-rw-r--r-- | man/cg-negative.1 | 2 | ||||
-rw-r--r-- | man/cg-query.1 | 2 | ||||
-rw-r--r-- | src/cg-base.c | 2 | ||||
-rw-r--r-- | src/cg-brilliance.c | 2 | ||||
-rw-r--r-- | src/cg-negative.c | 6 | ||||
-rw-r--r-- | src/cg-remove.c | 12 |
7 files changed, 14 insertions, 14 deletions
diff --git a/man/cg-darkroom.1 b/man/cg-darkroom.1 index ee3d636..84b40dd 100644 --- a/man/cg-darkroom.1 +++ b/man/cg-darkroom.1 @@ -15,7 +15,7 @@ cg-darkroom - Invert colour on the monitors and make them dark red .RB [ \-p .IR priority ] .RB [ \-d ] -.RI [ brightness ] +.RI [ brightness ]) .SH DESCRIPTION .B cg-darkroom inverts the colours on the monitors, dim them, and turns of diff --git a/man/cg-negative.1 b/man/cg-negative.1 index 4fdc010..4869b4c 100644 --- a/man/cg-negative.1 +++ b/man/cg-negative.1 @@ -15,7 +15,7 @@ cg-negative - Invert colour on the monitors .RB [ \-p .IR priority ] .RB [ \-d ] -.RB [ \+rgb ] +.RB [ \+rgb ]) .SH DESCRIPTION .B cg-negative inverts the colours on the monitors. diff --git a/man/cg-query.1 b/man/cg-query.1 index 0ae2bb9..b689804 100644 --- a/man/cg-query.1 +++ b/man/cg-query.1 @@ -12,7 +12,7 @@ cg-query - List output filters applied to a monitor .RB [ \-l .IR low ] .B \-c -.IR crtc ] +.I crtc .SH DESCRIPTION .B cg-query prints a list of all output filters applied to the monitor diff --git a/src/cg-base.c b/src/cg-base.c index 1309ded..dbcaf19 100644 --- a/src/cg-base.c +++ b/src/cg-base.c @@ -701,7 +701,7 @@ int main(int argc, char* argv[]) goto custom_fail; } stage++; - + if (have_crtc_q) switch (list_crtcs()) { diff --git a/src/cg-brilliance.c b/src/cg-brilliance.c index eab9806..5215448 100644 --- a/src/cg-brilliance.c +++ b/src/cg-brilliance.c @@ -189,7 +189,7 @@ static void fill_filter(libcoopgamma_filter_t* restrict filter) switch (filter->depth) { #define X(CONST, MAX, TYPE, MEMBER) \ - case CONST: \ + case CONST: \ for (i = 0; i < filter->ramps.MEMBER.red_size; i++) \ { \ double val = (double)(filter->ramps.MEMBER.red[i]); \ diff --git a/src/cg-negative.c b/src/cg-negative.c index 176d8db..28b87ea 100644 --- a/src/cg-negative.c +++ b/src/cg-negative.c @@ -55,12 +55,12 @@ static int xflag = 0; static int rplus = 0; /** - * +r: do not touch the green channel + * +g: do not touch the green channel */ static int gplus = 0; /** - * +r: do not touch the blue channel + * +b: do not touch the blue channel */ static int bplus = 0; @@ -166,7 +166,7 @@ static void fill_filter(libcoopgamma_filter_t* restrict filter) { #define X(CONST, MEMBER, MAX, TYPE)\ case CONST:\ - libclut_negative(&(filter->ramps.MEMBER), MAX, TYPE, !rplus, !gplus, !bplus);\ + libclut_negative(&(filter->ramps.MEMBER), MAX, TYPE, !rplus, !gplus, !bplus);\ break; LIST_DEPTHS #undef X diff --git a/src/cg-remove.c b/src/cg-remove.c index bde0855..bfab074 100644 --- a/src/cg-remove.c +++ b/src/cg-remove.c @@ -279,7 +279,7 @@ int main(int argc, char* argv[]) char* site = NULL; char** crtcs_ = NULL; char** crtcs = alloca(argc * sizeof(char*)); - size_t i, crtc_n = 0; + size_t i, crtcs_n = 0; ARGBEGIN { @@ -294,7 +294,7 @@ int main(int argc, char* argv[]) site = EARGF(usage()); break; case 'c': - crtcs[crtc_n++] = EARGF(usage()); + crtcs[crtcs_n++] = EARGF(usage()); break; } ARGEND; @@ -304,7 +304,7 @@ int main(int argc, char* argv[]) if ((method != NULL) && !strcmp(method, "?")) { - if ((site != NULL) || (crtc_n > 0) || (argc > 0)) + if ((site != NULL) || (crtcs_n > 0) || (argc > 0)) usage(); if (list_methods() < 0) goto fail; @@ -321,7 +321,7 @@ int main(int argc, char* argv[]) } stage++; - for (i = 0; i < crtc_n; i++) + for (i = 0; i < crtcs_n; i++) if (!strcmp(crtcs[i], "?")) { if (argc > 0) @@ -340,14 +340,14 @@ int main(int argc, char* argv[]) if (argc == 0) usage(); - if (crtc_n == 0) + if (crtcs_n == 0) { crtcs = crtcs_ = libcoopgamma_get_crtcs_sync(&cg); if (crtcs == NULL) goto cg_fail; } else - crtcs[crtc_n] = NULL; + crtcs[crtcs_n] = NULL; if (libcoopgamma_set_nonblocking(&cg, 1) < 0) goto fail; |