add 5x4 Font

This commit is contained in:
j3d1 2018-11-01 19:39:19 +01:00
parent 987aa92a23
commit 1009d689bc
15 changed files with 346 additions and 25 deletions

View file

@ -17,13 +17,13 @@ void draw_foo(int offset, int size, Node* ptr){
debug("|");*/
for(int i = 0; i<32; i++)
draw(offset,i);
hal_draw(offset,i);
for(int i = 0; i<size; i++)
draw(offset+i,31-i%32);
hal_draw(offset+i,31-i%32);
for(int i = 0; i<size; i++)
draw(offset+i,31-(i+16)%32);
hal_draw(offset+i,31-(i+16)%32);
print(offset+5 , 10, ptr->title_);
hal_print(offset+5 , 10, ptr->title_);
peng[0]=input[0]?' ':'#';
peng[1]=input[1]?' ':'#';
peng[2]=input[2]?' ':'#';
@ -31,7 +31,7 @@ void draw_foo(int offset, int size, Node* ptr){
j++;
j%=26;
peng[4] = 'a'+j;
print(offset+5 , 20, peng);
hal_print(offset+5 , 20, peng);
}
void draw_blub(int offset, int size, Node* ptr){
@ -42,9 +42,9 @@ void draw_blub(int offset, int size, Node* ptr){
//print(ptr->state);
debug("#");*/
for(int i = 0; i<32;i++)
draw(offset,i);
hal_draw(offset,i);
print(offset+5 , 10, ptr->title_);
hal_print(offset+5 , 10, ptr->title_);
}
void draw_menu(int offset, int size, Node* val){
@ -56,7 +56,7 @@ void draw_menu(int offset, int size, Node* val){
}*/
for(int i = 0; i<32;i++)
draw(offset,i);
hal_draw(offset,i);
for(int i = 0; i<32 && i<size;i++)
draw(offset+(i%size),i);
hal_draw(offset+(i%size),i);
}