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

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

# Line 49 | Line 49 | static const char      RCSid[] = "$Id$";
49   #define BORWIDTH        5               /* border width */
50   #endif
51  
52 #ifndef FEQ
53 #define FEQ(a,b)        ((a)-(b) <= FTINY && (a)-(b) >= -FTINY)
54 #endif
55
52   #define VWHEADLOCK      01              /* head position is locked flag */
53   #define VWPERSP         02              /* perspective view is set */
54   #define VWORTHO         04              /* orthographic view is set */
# Line 337 | Line 333 | dev_view(                      /* assign new driver view */
333          }
334          if (nv != &odev.v) {
335                                                  /* resize window? */
336 <                if (!FEQ(nv->horiz,odev.v.horiz) ||
337 <                                !FEQ(nv->vert,odev.v.vert)) {
336 >                if (!FABSEQ(nv->horiz,odev.v.horiz) ||
337 >                                !FABSEQ(nv->vert,odev.v.vert)) {
338                          int     dw = DisplayWidth(ourdisplay,ourscreen);
339                          int     dh = DisplayHeight(ourdisplay,ourscreen);
340  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines