Skip to content

Commit

Permalink
Merge pull request #1 from rthardy/patch-1
Browse files Browse the repository at this point in the history
fix some textual output issues in xcalib.c
  • Loading branch information
beku authored Nov 30, 2017
2 parents 95c9329 + 97d1fc0 commit 08beada
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xcalib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,14 +1089,14 @@ main (int argc, char *argv[])
}

if(!invert) {
/* ramps should be monotonic - otherwise content is nonsense! */
/* ramps should be increasing - otherwise content is nonsense! */
for (i = 0; i < ramp_size - 1; i++) {
if (r_ramp[i + 1] < r_ramp[i])
warning ("red gamma table not monotonic");
warning ("red gamma table not increasing");
if (g_ramp[i + 1] < g_ramp[i])
warning ("green gamma table not monotonic");
warning ("green gamma table not increasing");
if (b_ramp[i + 1] < b_ramp[i])
warning ("blue gamma table not monotonic");
warning ("blue gamma table not increasing");
}
} else {
for (i = 0; i < ramp_size; i++) {
Expand Down Expand Up @@ -1139,7 +1139,7 @@ main (int argc, char *argv[])
}
tmpRampVal = b_ramp[i];
}
fprintf(stdout, "R: %d\tG: %d\t B: %d\t colors lost\n", ramp_size - r_res, ramp_size - g_res, ramp_size - b_res );
fprintf(stdout, "R: %d G: %d B: %d colors lost\n", ramp_size - r_res, ramp_size - g_res, ramp_size - b_res );
}
#ifdef _WIN32
for (i = 0; i < ramp_size; i++) {
Expand Down

0 comments on commit 08beada

Please sign in to comment.