Skip to content
Snippets Groups Projects
Commit f19cbd76 authored by deuce's avatar deuce
Browse files

Use three pointers rather than a prefix/bitmask.

parent 26f19f2d
No related branches found
No related tags found
No related merge requests found
......@@ -324,6 +324,26 @@ while (<IN>) {
close IN;
print "struct font_names fnames[$fonts] = {\n";
foreach my $font (keys %fonts) {
print "\t,{$font, \"$fonts{$font}\", $fontsizes{$font}}\n";
print "\t,{";
if($fontsizes{$font} & 1) {
print "$font-8x16, ";
}
else {
print "NULL, ";
}
if($fontsizes{$font} & 2) {
print "$font-8x14, ";
}
else {
print "NULL, ";
}
if($fontsizes{$font} & 4) {
print "$font-8x8, ";
}
else {
print "NULL, ";
}
print "\"$fonts{$font}\"}\n";
}
print "};\n";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment