about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-02 03:56:57 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-02 03:56:57 +0000
commit84013afb7cd4a9651930770bd1c80787f041eab6 (patch)
tree245334922e3a7bee8e0133224e91e2e7183786c5 /editor
parentfd62e10a1612f4eaa0e16680a8103d63c1a175c6 (diff)
downloadnetpbm-mirror-84013afb7cd4a9651930770bd1c80787f041eab6.tar.gz
netpbm-mirror-84013afb7cd4a9651930770bd1c80787f041eab6.tar.xz
netpbm-mirror-84013afb7cd4a9651930770bd1c80787f041eab6.zip
Use ppm_luminosity() instead of PPM_LUMIN() so as to get proper rounding
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1115 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmhisteq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pnmhisteq.c b/editor/pnmhisteq.c
index 60202632..97dbe472 100644
--- a/editor/pnmhisteq.c
+++ b/editor/pnmhisteq.c
@@ -144,7 +144,7 @@ computeLuminosityHistogram(xel * const *   const xels,
             for (col = 0; col < cols; ++col) {
                 xel const thisXel = xels[row][col];
                 if (!monoOnly || PPM_ISGRAY(thisXel)) {
-                    xelval const l = PPM_LUMIN(thisXel);
+                    xelval const l = ppm_luminosity(thisXel);
 
                     lmin = MIN(lmin, l);
                     lmax = MAX(lmax, l);