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

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.51 by schorsch, Sun Mar 28 20:33:13 2004 UTC vs.
Revision 3.53 by greg, Tue Aug 16 18:09:53 2011 UTC

# Line 382 | Line 382 | set_focus(                     /* set focus frame */
382                  vwfocus.horiz = hsiz * odev.v.horiz;
383                  vwfocus.vert = vsiz * odev.v.vert;
384                  break;
385 +        case VT_PLS:
386 +                vwfocus.horiz = hsiz * sin((PI/180./2.)*odev.v.horiz) /
387 +                                (1.0 + cos((PI/180./2.)*odev.v.horiz));
388 +                vwfocus.horiz *= vwfocus.horiz;
389 +                vwfocus.horiz = (2.*180./PI)*acos((1. - vwfocus.horiz) /
390 +                                                (1. + vwfocus.horiz));
391 +                vwfocus.vert = vsiz * sin((PI/180./2.)*odev.v.vert) /
392 +                                (1.0 + cos((PI/180./2.)*odev.v.vert));
393 +                vwfocus.vert *= vwfocus.vert;
394 +                vwfocus.vert = (2.*180./PI)*acos((1. - vwfocus.vert) /
395 +                                                (1. + vwfocus.vert));
396 +                break;
397          case VT_HEM:
398                  vwfocus.horiz = 2.*180./PI*asin(
399                                  hsiz * sin(PI/180./2.*odev.v.horiz) );
# Line 531 | Line 543 | serv_result(void)                      /* get next server result and proc
543                  break;
544          case DS_STARTIMM:
545          case DS_ENDIMM:
546 <                if (!(imm_mode = msg.type==DS_STARTIMM))
546 >                if (!(imm_mode = (msg.type==DS_STARTIMM)))
547                          dev_flush();
548   #ifdef DEBUG
549                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines