make it possible to access fonts without a display.
This commit is contained in:
parent
a2c2caaafe
commit
4e20688042
7 changed files with 78 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue