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

Comparing ray/src/hd/rhd_glx1.c (file contents):
Revision 3.10 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.11 by greg, Fri Feb 12 00:53:56 2021 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21   #define RAYQLEN         50000           /* max. rays to queue before flush */
22   #endif
23  
24 #ifndef FEQ
25 #define FEQ(a,b)        ((a)-(b) <= FTINY && (a)-(b) >= -FTINY)
26 #endif
27
24   #ifndef MAXCONE
25   #define MAXCONE         16              /* number of different cone sizes */
26   #endif
# Line 250 | Line 246 | dev_view(                      /* assign new driver view */
246                  return(0);
247          }
248          if (nv != &odev.v) {
249 <                if (!FEQ(nv->horiz,odev.v.horiz) ||     /* resize window? */
250 <                                !FEQ(nv->vert,odev.v.vert)) {
249 >                if (!FABSEQ(nv->horiz,odev.v.horiz) ||  /* resize window? */
250 >                                !FABSEQ(nv->vert,odev.v.vert)) {
251                          int     dw = DisplayWidth(ourdisplay,ourscreen);
252                          int     dh = DisplayHeight(ourdisplay,ourscreen);
253  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines