readded draw.c again (except getcolor and setfont)

This commit is contained in:
Anselm R. Garbe
2007-02-20 13:54:00 +01:00
parent 66b2e8379f
commit a1913a6af7
5 changed files with 77 additions and 67 deletions

View File

@ -38,6 +38,11 @@ extern int screen;
extern Display *dpy;
extern DC dc; /* global drawing context */
/* draw.c */
extern void drawtext(const char *text, unsigned long col[ColLast]);
extern unsigned int textw(const char *text);
extern unsigned int textnw(const char *text, unsigned int len);
/* util.c */
extern void *emalloc(unsigned int size); /* allocates memory, exits on error */
extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */