Fix packer and unpacker
This commit is contained in:
parent
fd1a05943f
commit
28762c9450
@ -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;
|
||||
}
|
||||
|
@ -3,6 +3,8 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#define INCLUDE_FONTDATA
|
||||
|
||||
#include "font.h"
|
||||
|
||||
#define CELLW 12
|
||||
|
Loading…
Reference in New Issue
Block a user