Skip to content

Commit

Permalink
_COUNT #define should occur only once in bdf-converter output
Browse files Browse the repository at this point in the history
  • Loading branch information
spk121 committed Sep 12, 2014
1 parent 2a60a7c commit 79715cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/font/bdf-converter.c
Expand Up @@ -756,17 +756,14 @@ int main(int argc, char **argv)
fprintf (out, "} glyph_fixed%dx%d_t;\n", fbb_x, fbb_y);
fprintf (out, "\n");
fprintf (out, "glyph_fixed%dx%d_t fixed%dx%d_glyphs[%d] = {\n", fbb_x, fbb_y, fbb_x, fbb_y, n);
int count = 0;
for (i = 0; i < MAX16BIT; i ++)
{
if (glyph[i]) {
fprintf (out, " {0x%04x, FIXED%dx%d_METRICS_%d, FIXED%dx%d_BITMAP_%d},\n", i, fbb_x, fbb_y, i,
fbb_x, fbb_y, i);
count ++;
}
}
fprintf (out, "};\n");
fprintf(out, "#define FIXED%dx%d_COUNT %d\n\n", fbb_x, fbb_y, count);
fclose(out);

/* The End */
Expand Down

0 comments on commit 79715cd

Please sign in to comment.