Fix packer and unpacker

This commit is contained in:
Simon Robertshaw 2011-08-08 11:12:09 +01:00
parent fd1a05943f
commit 28762c9450
2 changed files with 9 additions and 0 deletions

View File

@ -77,7 +77,12 @@ int main(int argc, char *argv[])
fread(font, CELLW*CELLH, 256, f);
fclose(f);
printf("#ifndef FONT_H_CHECK\n");
printf("#define FONT_H_CHECK\n");
printf("#define FONT_H %d\n", ysize);
printf("#ifdef INCLUDE_FONTDATA\n");
printf("char font_data[] = {\n");
for(c=0; c<256; c++) {
@ -97,6 +102,8 @@ int main(int argc, char *argv[])
printf(" ");
}
printf("};\n");
printf("#endif\n#endif\n");
return 0;
}

View File

@ -3,6 +3,8 @@
#include <string.h>
#include <math.h>
#define INCLUDE_FONTDATA
#include "font.h"
#define CELLW 12