--- psiconv/trunk/lib/psiconv/generate_image.c 2004/03/17 17:31:13 243 +++ psiconv/trunk/lib/psiconv/generate_image.c 2004/03/22 20:08:09 244 @@ -266,7 +266,7 @@ << bluebits) + ((psiconv_u32) (p_blue * (1 << bluebits) + 0.5)); else - pixel = (p_red + p_green + p_blue)/3.0 * (1 << colordepth); + pixel = (0.212671 * p_red + 0.715160 * p_green + 0.072169 * p_blue) * ((1 << colordepth) * 0.999); } else { dist = 4; /* Max distance is 3, so this is safe */ pixel = -1; @@ -960,4 +960,3 @@ psiconv_progress(config,lev,0,"End of jumptable section"); return res; } -