Lots of X fixes.
This commit is contained in:
parent
4af386f434
commit
161060a463
14 changed files with 237 additions and 31 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#include <libc.h>
|
||||
#include <draw.h>
|
||||
|
||||
extern vlong _drawflength(int);
|
||||
|
||||
Font*
|
||||
openfont(Display *d, char *name)
|
||||
{
|
||||
|
|
@ -13,7 +15,7 @@ openfont(Display *d, char *name)
|
|||
if(fd < 0)
|
||||
return 0;
|
||||
|
||||
n = flength(fd);
|
||||
n = _drawflength(fd);
|
||||
buf = malloc(n+1);
|
||||
if(buf == 0){
|
||||
close(fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue