aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;