From 403e5c481906869d0e9b16382d08aa0c42400e83 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 2 Feb 2010 15:09:38 +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@1117 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pamtosvg/thin-image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'converter/other') diff --git a/converter/other/pamtosvg/thin-image.c b/converter/other/pamtosvg/thin-image.c index 40ced794..86d1037c 100644 --- a/converter/other/pamtosvg/thin-image.c +++ b/converter/other/pamtosvg/thin-image.c @@ -171,7 +171,7 @@ thin_image(bitmap_type *image, bool bgSpec, pixel bg, if (PPM_ISGRAY(background)) bg_color = PPM_GETR(background); else - bg_color = PPM_LUMIN(background); + bg_color = ppm_luminosity(background); for (n = num_pixels - 1; n >= 0L; --n) { @@ -306,7 +306,7 @@ void thin1(bitmap_type *image, unsigned char colour) if (PPM_ISGRAY(background)) bg_color = PPM_GETR(background); else - bg_color = PPM_LUMIN(background); + bg_color = ppm_luminosity(background); LOG (" Thinning image.....\n "); xsize = image->width; -- cgit 1.4.1