]> gitweb.factorcode.org Git - factor.git/commitdiff
lcd: fix alignment of digits 1, 2 and 3
authorAlexander Ilin <alex.ilin@protonmail.com>
Wed, 16 Aug 2023 23:41:22 +0000 (01:41 +0200)
committerAlexander Ilin <alex.ilin@protonmail.com>
Wed, 16 Aug 2023 23:41:22 +0000 (01:41 +0200)
The 1, 3 and 7 only _look_ like the have too much whitespace to the left
because their leftmost segments are empty. This appearance lead to
incorrect placement of 1 and 3 in the constants.

extra/lcd/lcd.factor

index 94294501ade41594bf60e4d28f32b2c2d2ed70c4..4083e5c3f012985d4e8899d661cfd024c117a0ff 100644 (file)
@@ -6,10 +6,10 @@ IN: lcd
 
 : lcd-digit ( digit row -- str )
     [ dup CHAR: : = [ drop 10 ] [ CHAR: 0 - ] if ] dip {
-        "  _       _  _       _   _   _   _   _      "
-        " | |  |   _| _| |_| |_  |_    | |_| |_|  *  "
-        " |_|  |  |_  _|   |  _| |_|   | |_|   |  *  "
-        "                                            "
+        "  _       _   _       _   _   _   _   _      "
+        " | |   |  _|  _| |_| |_  |_    | |_| |_|  *  "
+        " |_|   | |_   _|   |  _| |_|   | |_|   |  *  "
+        "                                             "
     } nth 4 <groups> nth ;
 
 : lcd-row ( row digit -- string )