summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-11 22:08:01 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-11 22:08:01 (EDT)
commit6b6fa0191e4629c1ee2c29664c0b2c314d85ff91 (patch)
tree9c321babe8f9b21cfbbee15ae40f5961bff4e3e7
parentc38b9e2c744e8fc9186360ad9ddb62c8eb59424a (diff)
write_fbcon(): Set undefined bitmaps to 0
-rwxr-xr-xbin/bdf2fbcon1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon
index 0d4d99c..bf4f047 100755
--- a/bin/bdf2fbcon
+++ b/bin/bdf2fbcon
@@ -315,6 +315,7 @@ sub write_fbcon
$i, $i, $char->{'name'});
for ($j = 0; $j < $font->{'height'}; ++$j) {
$bitmap = $char->{'bitmap'}[$i];
+ $bitmap = 0 unless ($bitmap);
printf($output_fh "\t");
$bitmap <<= $bytes_x * 8 - $font->{'width'};
for (my $k = ($bytes_x - 1) * 8; $k >= 0; $k -= 8) {