diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-07-11 16:32:59 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-07-11 16:32:59 (EDT) |
commit | 8921c3b93041a7fa771e063369d5c1552bbef61a (patch) | |
tree | 4764a9dd026faf70cac792f1a42a4226284ea0a7 /bin | |
parent | ba3cc27a5cb57f409da121e6e9e5814bee4d92b3 (diff) |
write_fbcon(): Set FONTDATAMAX
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'}); |