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

Comparing ray/src/cv/bsdf2klems.c (file contents):
Revision 2.13 by greg, Wed Mar 12 21:15:31 2014 UTC vs.
Revision 2.14 by greg, Wed Mar 12 22:24:59 2014 UTC

# Line 41 | Line 41 | prog_show(double frac)
41          char    pbar[256];
42          int     nchars;
43  
44 <        if (do_prog <= 0) return;
44 >        if (do_prog <= 1) return;
45          if (do_prog > sizeof(pbar)-2)
46                  do_prog = sizeof(pbar)-2;
47          if (frac < 0) frac = 0;
# Line 55 | Line 55 | prog_show(double frac)
55   }
56  
57   /* Finish progress bar */
58 < #define prog_done()     if (do_prog) fputc('\n',stderr); else
58 > static void
59 > prog_done(void)
60 > {
61 >        int     n = do_prog;
62 >
63 >        if (n <= 1) return;
64 >        fputc('\r', stderr);
65 >        while (n--)
66 >                fputc(' ', stderr);
67 >        fputc('\r', stderr);
68 > }
69  
70   /* Return angle basis corresponding to the given name */
71   static ANGLE_BASIS *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines