summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commit8921c3b93041a7fa771e063369d5c1552bbef61a (patch)
tree4764a9dd026faf70cac792f1a42a4226284ea0a7
parentba3cc27a5cb57f409da121e6e9e5814bee4d92b3 (diff)
write_fbcon(): Set FONTDATAMAX
-rwxr-xr-xbin/bdf2fbcon4
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'});