diff options
| author | miguel <miguel@miguel-acer.softwarefools.com> | 2014-08-28 01:24:49 +0200 |
|---|---|---|
| committer | miguel <miguel@miguel-acer.softwarefools.com> | 2014-08-28 01:24:49 +0200 |
| commit | 6988840029c81dd7f494ebb93af11613ae79f0f0 (patch) | |
| tree | af7f601353cc9a10cc38ce29696bbcf92b0dc9b4 /kernel | |
| parent | 8496db1f6caff488b3835e7897fd079a267d8839 (diff) | |
added small charactes to fool-font !
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/vesa.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |
