diff options
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; |
