projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bullshit commit, sync for travel (to zn00H!) :)
[my-code/arm.git]
/
betty
/
font2b.c
diff --git
a/betty/font2b.c
b/betty/font2b.c
index
b0e9c7c
..
5ce243a
100644
(file)
--- a/
betty/font2b.c
+++ b/
betty/font2b.c
@@
-21,6
+21,8
@@
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
+typedef unsigned int u32;
+
// put your font data here!
#include "/usr/src/linux/drivers/video/console/font_pearl_8x8.c"
// put your font data here!
#include "/usr/src/linux/drivers/video/console/font_pearl_8x8.c"
@@
-49,7
+51,7
@@
int main(int argc,char **argv) {
}
if(stat==CHAR)
}
if(stat==CHAR)
- printf("const unsigned char default_font[%d]={\n",256*8
*2
);
+ printf("const unsigned char default_font[%d]={\n",256*8);
for(font=0;font<=0xff;font++) {
for(font=0;font<=0xff;font++) {
@@
-66,7
+68,7
@@
int main(int argc,char **argv) {
for(col=0;col<8;col++) {
buf=0;
for(row=0;row<8;row++)
for(col=0;col<8;col++) {
buf=0;
for(row=0;row<8;row++)
- buf|=(
font_data[font*8+row]&(1<<(7-col))
);
+ buf|=(
((font_data[font*8+row]>>(7-col))&1)<<row
);
if(stat==CHAR) {
if(col==0)
printf("\t");
if(stat==CHAR) {
if(col==0)
printf("\t");