From fd62e10a1612f4eaa0e16680a8103d63c1a175c6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 2 Feb 2010 03:53:29 +0000 Subject: 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@1114 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/ppmdist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/ppmdist.c') diff --git a/editor/ppmdist.c b/editor/ppmdist.c index 90c2e3d3..bca96adc 100644 --- a/editor/ppmdist.c +++ b/editor/ppmdist.c @@ -125,7 +125,7 @@ main(int argc, char *argv[]) { * by frequency - but again, for a small number of colors * it's a small matter. */ - colorToGrayMap[color].gray = PPM_LUMIN(hist[color].color); + colorToGrayMap[color].gray = ppm_luminosity(hist[color].color); } /* -- cgit 1.4.1