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

Comparing ray/src/rt/aed.c (file contents):
Revision 1.3 by greg, Tue Oct 3 11:10:02 1989 UTC vs.
Revision 1.4 by greg, Tue Oct 3 14:06:51 1989 UTC

# Line 56 | Line 56 | static char SCCSid[] = "$SunId$ LBL";
56   #define  COMHT          16              /* height of command line */
57   #define  COMCW          63              /* maximum chars on command line */
58  
59 int  anewcolr();
60
59   int  aed_close(), aed_clear(), aed_paintr(),
60                  aed_getcur(), aed_comout(), aed_errout();
61  
# Line 88 | Line 86 | char  *name;
86          byte(BLK); byte(WHT); byte(15);
87          command(SCP);
88          byte('+'); byte(0); byte(1);
89 <        make_cmap(GAMMA);                               /* make color map */
89 >        make_gmap(GAMMA);                               /* make color map */
90          errvec = aed_errout;                            /* set error vector */
91          cmdvec = aed_errout;
92          if (wrnvec != NULL)
# Line 119 | Line 117 | aed_clear(x, y)                                        /* clear AED */
117   int  x, y;
118   {
119          command(FFD);
120 <        new_ctab(NCOLORS, anewcolr);            /* init color table */
120 >        new_ctab(NCOLORS);                      /* init color table */
121          flush();
122   }
123  
# Line 129 | Line 127 | aed_paintr(col, xmin, ymin, xmax, ymax)                /* paint a re
127   COLOR  col;
128   int  xmin, ymin, xmax, ymax;
129   {
130 +        extern int  anewcolr();
131          int  ndx;
132  
133 <        ndx = get_pixel(col);                   /* may call anewcolr() */
133 >        ndx = get_pixel(col, anewcolr);         /* calls anewcolr() */
134          command(SEC);                           /* draw rectangle */
135          byte(ndx+MINPIX);
136          aedsetcap(xmin, ymin+COMHT);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines