aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-18 18:48:48 +0100
committerMattias Andrée <maandree@kth.se>2016-12-18 18:59:43 +0100
commita651b51ed08f7fa04e25759b6e96a02d6dbbcb70 (patch)
tree3267ae0b0f39c31518feafeb6f0c58a4c2ab5256 /src
parentcg-query: print white point (diff)
downloadcg-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--src/cg-base.c2
-rw-r--r--src/cg-brilliance.c2
-rw-r--r--src/cg-negative.c6
-rw-r--r--src/cg-remove.c12
4 files changed, 11 insertions, 11 deletions
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;