X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=include%2Fvideo_font_4x6.h;h=6aeed092ad476642b79b049eca697f34a7ee6e00;hp=d1778d5b5be11cee55b08e35772ceda3a0e55bce;hb=2d2e56167cfbdae55f114162a7906d56d057a538;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567 diff --git a/include/video_font_4x6.h b/include/video_font_4x6.h index d1778d5b5b..6aeed092ad 100644 --- a/include/video_font_4x6.h +++ b/include/video_font_4x6.h @@ -1,4 +1,3 @@ - /* Hand composed "Minuscule" 4x6 font, with binary data generated using * Perl stub. * @@ -18,15 +17,15 @@ s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{ ($num,$pat,$bits) = ($1,$3,$4); - + $bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge; - + $num = ord(pack("B8", $bits)); $num |= $num >> 4; $num = sprintf("0x%.2x", $num); - + #print "$num,$pat,$bits\n"; - + $num . $pat; }ge;