Mercurial > hg > dmlib
changeset 212:8fba01374a29
Improve C source output of fontconv.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 07 Oct 2012 15:33:55 +0300 |
parents | 3dc35ce354f7 |
children | 5b1554eb9928 |
files | fontconv.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/fontconv.c Sun Oct 07 15:15:17 2012 +0300 +++ b/fontconv.c Sun Oct 07 15:33:55 2012 +0300 @@ -147,7 +147,7 @@ static int dm_csrc_fopen(DMResource * f) { fprintf(f->fh, - "const Uint8 %s = {\n", (char *) f->data + "const Uint8 %s[] = {\n", (char *) f->data ); return DMERR_OK; } @@ -159,6 +159,8 @@ { fprintf(f->fh, "\n};\n" + "const int %s_size = sizeof(%s) / sizeof(%s[0]);\n", + (char *)f->data, (char *)f->data, (char *)f->data ); fclose(f->fh); f->fh = NULL;