--- ray/src/px/ra_pr24.c 1990/10/18 12:00:48 1.1 +++ ray/src/px/ra_pr24.c 1990/10/18 12:21:33 1.2 @@ -159,7 +159,7 @@ ra2pr() /* convert Radiance scanlines to 24-bit rast if (scanin == NULL) quiterr("out of memory in pr2ra"); /* compute gamma correction */ - for (x = 0; x < 256; x++) + for (x = 0; x < 1024; x++) gmap[x] = 256.*pow((x+.5)/1024., 1./gamma); /* convert image */ for (y = ymax-1; y >= 0; y--) {