make it possible to access fonts without a display.

This commit is contained in:
rsc 2004-04-25 20:26:27 +00:00
parent a2c2caaafe
commit 4e20688042
7 changed files with 78 additions and 48 deletions

View file

@ -25,7 +25,7 @@ _stringnwidth(Font *f, char *s, Rune *r, int len)
}else
rptr = &r;
twid = 0;
while(len && (*s || *r)){
while(len>0 && (*s || *r)){
max = Max;
if(len < max)
max = len;