Revision 317
changed stuff on font
font.c | ||
---|---|---|
9 | 9 |
#include <assert.h> |
10 | 10 |
|
11 | 11 |
/// GLYPH |
12 |
struct glyph{
|
|
12 |
typedef struct {
|
|
13 | 13 |
uint16_t w, h; |
14 | 14 |
uint8_t *map; |
15 |
}; |
|
16 |
typedef struct glyph glyph_t; |
|
15 |
} glyph_t; |
|
17 | 16 |
static glyph_t* (glyph_ctor)(const char **xpm){ |
18 | 17 |
if(xpm == NULL) return NULL; |
19 | 18 |
glyph_t *ret = malloc(sizeof(glyph_t)); |
Also available in: Unified diff