fontexpand: fix the bug
authorAlan Cox <alan@linux.intel.com>
Sat, 18 Aug 2018 00:01:04 +0000 (01:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 18 Aug 2018 00:01:04 +0000 (01:01 +0100)
Now the fonts look right

Kernel/tools/fontexpand.c

index 848a27f..1edf488 100644 (file)
@@ -12,10 +12,10 @@ uint16_t widen(uint8_t n)
     uint16_t r = 0;
     /* We don't need performance so do the simple way */
     for (i = 0; i < 8; i++) {
+        r <<= 2;
         if (n & 0x80)
             r |= 0x03;
         n <<= 1;
-        r <<= 2;
     }
     return r;
 }