[BACK]Return to term_ps.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ps.c between version 1.60 and 1.61

version 1.60, 2014/04/23 21:06:41 version 1.61, 2014/07/27 21:53:17
Line 914  ps_pletter(struct termp *p, int c)
Line 914  ps_pletter(struct termp *p, int c)
   
         f = (int)p->ps->lastf;          f = (int)p->ps->lastf;
   
         if (c <= 32 || (c - 32 >= MAXCHAR)) {          if (c <= 32 || c - 32 >= MAXCHAR)
                 ps_putchar(p, ' ');                  c = 32;
                 p->ps->pscol += (size_t)fonts[f].gly[0].wx;  
                 return;  
         }  
   
         ps_putchar(p, (char)c);          ps_putchar(p, (char)c);
         c -= 32;          c -= 32;
Line 1104  ps_width(const struct termp *p, int c)
Line 1101  ps_width(const struct termp *p, int c)
 {  {
   
         if (c <= 32 || c - 32 >= MAXCHAR)          if (c <= 32 || c - 32 >= MAXCHAR)
                 return((size_t)fonts[(int)TERMFONT_NONE].gly[0].wx);                  c = 0;
           else
                   c -= 32;
   
         c -= 32;  
         return((size_t)fonts[(int)TERMFONT_NONE].gly[c].wx);          return((size_t)fonts[(int)TERMFONT_NONE].gly[c].wx);
 }  }
   

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

CVSweb