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

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

# Line 25 | Line 25 | static const char      RCSid[] = "$Id$";
25   #define RAYQLEN         50000           /* max. rays to queue before flush */
26   #endif
27  
28 #ifndef FEQ
29 #define FEQ(a,b)        ((a)-(b) <= FTINY && (a)-(b) >= -FTINY)
30 #endif
31
28   #define GAMMA           2.2             /* default gamma correction */
29  
30   #define FRAMESTATE(s)   (((s)&(ShiftMask|ControlMask))==(ShiftMask|ControlMask))
# Line 264 | Line 260 | dev_view(                      /* assign new driver view */
260                  return(0);
261          }
262          if (nv != &odev.v) {
263 <                if (!FEQ(nv->horiz,odev.v.horiz) ||     /* resize window? */
264 <                                !FEQ(nv->vert,odev.v.vert)) {
263 >                if (!FABSEQ(nv->horiz,odev.v.horiz) ||  /* resize window? */
264 >                                !FABSEQ(nv->vert,odev.v.vert)) {
265                          int     dw = DisplayWidth(ourdisplay,ourscreen);
266                          int     dh = DisplayHeight(ourdisplay,ourscreen);
267  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines