From 6988840029c81dd7f494ebb93af11613ae79f0f0 Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 28 Aug 2014 01:24:49 +0200 Subject: added small charactes to fool-font ! --- kernel/vesa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kernel') diff --git a/kernel/vesa.c b/kernel/vesa.c index 2a8230c..e8990b5 100644 --- a/kernel/vesa.c +++ b/kernel/vesa.c @@ -107,15 +107,15 @@ void PutPixel(int x,int y, int color){ //cTemp[x+y+2] = (uint8_t)((color>>16) & 0xff); } + void PutFont(char c, int x,int y, int color) { - int fnt=0; + int fnt=0x126-0x20; + + if(c>=0x20&&c<=0x126)fnt=c-0x20; + - if(c>='A'&&c<='Z')fnt=c-'A'+1; - else if(c>='a'&&c<='z')fnt=c-'a'+1; - else if(c>='0'&&c<='9')fnt=c-'0'+28; - else if(c==' ')fnt=27; int posx, posy, sizex=8, sizey=10; -- cgit v1.2.3