ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/text.c
(Generate patch)

Comparing ray/src/rt/text.c (file contents):
Revision 1.2 by greg, Tue Apr 11 13:30:35 1989 UTC vs.
Revision 1.4 by greg, Sat Dec 15 15:03:40 1990 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1990 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 89 | Line 89 | RAY  *r;
89  
90                                  /* first, discover position in text */
91          ap = m->oargs.farg;
92 <        multp3(v, r->rop, r->robx);
92 >        if (r->rox != NULL)
93 >                multp3(v, r->rop, r->rox->b.xfm);
94 >        else
95 >                VCOPY(v, r->rop);
96          v[0] -= ap[0];
97          v[1] -= ap[1];
98          v[2] -= ap[2];
# Line 160 | Line 163 | int  col;
163                          txt[1] = NULL;
164                  } else {                                /* text file */
165                          if ((s = getpath(tm->oargs.sarg[tndx(tm)],
166 <                                        libpath)) == NULL) {
166 >                                        libpath, R_OK)) == NULL) {
167                                  sprintf(errmsg, "cannot find text file \"%s\"",
168                                                  tm->oargs.sarg[tndx(tm)]);
169                                  error(USER, errmsg);
# Line 211 | Line 214 | char  *fname;
214                  if (!strcmp(f->name, fname))
215                          return(f);
216                                                  /* load the font file */
217 <        if ((pathname = getpath(fname, libpath)) == NULL) {
217 >        if ((pathname = getpath(fname, libpath, R_OK)) == NULL) {
218                  sprintf(errmsg, "cannot find font file \"%s\"", fname);
219                  error(USER, errmsg);
220          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines