diff options
Diffstat (limited to 'editor/specialty/pamoil.c')
-rw-r--r-- | editor/specialty/pamoil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/specialty/pamoil.c b/editor/specialty/pamoil.c index 6cb8d3ac..2618ac12 100644 --- a/editor/specialty/pamoil.c +++ b/editor/specialty/pamoil.c @@ -18,7 +18,7 @@ #include "pam.h" #include "mallocvar.h" -static void +static void convertRow(struct pam const inpam, tuple ** const tuples, tuple * const tuplerow, int const row, int const smearFactor, int * const hist) { @@ -34,7 +34,7 @@ convertRow(struct pam const inpam, tuple ** const tuples, of the pixel being examined */ - /* Compute hist[] - frequencies, in the neighborhood, of each + /* Compute hist[] - frequencies, in the neighborhood, of each sample value */ for (i = 0; i <= inpam.maxval; ++i) hist[i] = 0; @@ -42,8 +42,8 @@ convertRow(struct pam const inpam, tuple ** const tuples, for (drow = row - smearFactor; drow <= row + smearFactor; ++drow) { if (drow >= 0 && drow < inpam.height) { int dcol; - for (dcol = col - smearFactor; - dcol <= col + smearFactor; + for (dcol = col - smearFactor; + dcol <= col + smearFactor; ++dcol) { if ( dcol >= 0 && dcol < inpam.width ) ++hist[tuples[drow][dcol][sample]]; |