From ed7bfe0376695a6ea811eb451289d18f8abe0619 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 2 Feb 2010 03:52:20 +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@1113 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmremap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/pnmremap.c b/editor/pnmremap.c index 5b58addb..29e05905 100644 --- a/editor/pnmremap.c +++ b/editor/pnmremap.c @@ -30,6 +30,7 @@ #include "nstring.h" #include "shhopt.h" #include "pam.h" +#include "ppm.h" #include "pammap.h" #define MAXCOLORS 32767u @@ -1122,7 +1123,7 @@ getSpecifiedMissingColor(struct pam * const pamP, specColor[PAM_GRN_PLANE] = PPM_GETG(color); specColor[PAM_BLU_PLANE] = PPM_GETB(color); } else if (pamP->depth == 1) { - specColor[0] = PPM_LUMIN(color); + specColor[0] = ppm_luminosity(color); } else { pm_error("You may not use -missing with a colormap that is not " "of depth 1 or 3. Yours has depth %u", -- cgit 1.4.1