From 8921c3b93041a7fa771e063369d5c1552bbef61a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 11 Jul 2014 16:32:59 -0400 Subject: write_fbcon(): Set FONTDATAMAX --- 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 \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'}); -- cgit v0.9.1