public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee8e57
)
fontexpand: fix the bug
author
Alan Cox
<alan@linux.intel.com>
Sat, 18 Aug 2018 00:01:04 +0000
(
01:01
+0100)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Kernel/tools/fontexpand.c
b/Kernel/tools/fontexpand.c
index
848a27f
..
1edf488
100644
(file)
--- a/
Kernel/tools/fontexpand.c
+++ b/
Kernel/tools/fontexpand.c
@@
-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;
}