diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bdf2fbcon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon index 96b1412..c57c188 100755 --- a/bin/bdf2fbcon +++ b/bin/bdf2fbcon @@ -265,8 +265,8 @@ sub write_fbcon } printf($output_fh "/* Generated by bdf2fbcon */\n\n"); printf($output_fh "#include <linux/font.h>\n\n"); - # XXX - printf($output_fh "#define FONTDATAMAX %d\n\n", 0); + printf($output_fh "#define FONTDATAMAX %d\n\n", + int(($font->{'width'} + 7) / 8) * $font->{'height'} * 256); printf($output_fh "static const unsigned char" . " fontdata_%s[FONTDATAMAX] = {\n", $font->{'name'}); |