summaryrefslogtreecommitdiff
path: root/include/video_font_4x6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/video_font_4x6.h')
-rw-r--r--include/video_font_4x6.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/video_font_4x6.h b/include/video_font_4x6.h
index d1778d5..0dcd2de 100644
--- a/include/video_font_4x6.h
+++ b/include/video_font_4x6.h
@@ -18,15 +18,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;