--- ray/src/util/rad.c 1993/09/24 16:49:02 2.26 +++ ray/src/util/rad.c 1993/10/28 11:48:29 2.28 @@ -437,9 +437,13 @@ int pred; register int n; int suffix; - suffix = n = strlen(orig); /* find start of suffix */ - if ((cp = rindex(orig, '.')) != NULL) - suffix = cp - orig; + n = 0; cp = orig; suffix = -1; /* suffix position, length */ + while (*cp) { + if (*cp == '.') suffix = n; + else if (ISDIRSEP(*cp)) suffix = -1; + cp++; n++; + } + if (suffix == -1) suffix = n; if ((cp = bmalloc(n+2)) == NULL) syserr(progname); strncpy(cp, orig, suffix); @@ -828,7 +832,7 @@ register char *op; } op = addarg(op, "-pt .08"); if (vbool(PENUMBRAS)) - op = addarg(op, "-ds .2 -dj .35"); + op = addarg(op, "-ds .2 -dj .5"); else op = addarg(op, "-ds .3"); op = addarg(op, "-dt .1 -dc .5 -dr 1 -sj .7 -st .1");