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

Comparing ray/src/px/psign.c (file contents):
Revision 2.6 by greg, Tue Jun 16 16:48:39 1992 UTC vs.
Revision 2.8 by greg, Mon Jun 22 13:59:53 1992 UTC

# Line 66 | Line 66 | int  nlines, maxline;                  /* text dimensions */
66   int  maxwidth;                          /* maximum line width (dvi) */
67  
68   extern char  *getenv();
69 extern char  *malloc(), *calloc();
69  
70  
71   main(argc, argv)
# Line 165 | Line 164 | makemap()                      /* create the bit map */
164          if (ysiz % SSS)
165                  ysiz += SSS - ysiz%SSS;
166          xdim = (xsiz+7)/8;
167 <        ourbitmap = (BYTE *)calloc(ysiz, xdim);
167 >        ourbitmap = (BYTE *)bmalloc(ysiz*xdim);
168          if (ourbitmap == NULL)
169                  error(SYSTEM, "Out of memory in makemap");
170 +        bzero((char *)ourbitmap, ysiz*xdim);
171   }
172  
173  
# Line 195 | Line 195 | FILE  *fp;
195                          maxline = len;
196                  strncpy(curl->s, buf, len);
197                  curl->s[len] = '\0';
198 <                if (spacing < 0.0)
198 >                if (spacing < -1./256.)
199                          len = squeeztext(curl->sp, curl->s, ourfont,
200                                          (int)(spacing*-256.0));
201 <                else if (spacing > 0.0)
201 >                else if (spacing > 1./256.)
202                          len = proptext(curl->sp, curl->s, ourfont,
203                                          (int)(spacing*256.0), 3);
204                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines