From 06e382afcbf199e5e4ec92574a3872ab04fb6e9e Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 4 Sep 2014 15:16:13 +0200 Subject: Improved physical memory manager and cleaning up. --- kernel/vesa.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'kernel/vesa.c') diff --git a/kernel/vesa.c b/kernel/vesa.c index 74d3435..f3b333c 100644 --- a/kernel/vesa.c +++ b/kernel/vesa.c @@ -52,18 +52,17 @@ typedef struct foolfont_struct static foolfont *deffont; static vbemodeinfo *VbeModeInfoBlock; -static console_x; -static console_y; +static int console_x; +static int console_y; -static console_lines; -static console_cols; +static int console_lines; +static int console_cols; void vesa_set_physbase(uint32_t addr) { VbeModeInfoBlock->physbase=addr; } - uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) { //the only functionallu important init lines! (rest is log) @@ -165,13 +164,9 @@ void PutString(char *str, int x,int y, int color, va_list va) } -void PutConsole(char *str, int color, va_list va) +void PutConsole(char *str, int color) { - char buff[256]; - tfp_vsprintf(buff,str,va); - str=buff; - while((*str)!=0) { PutFont(*str, console_x*10,console_y*12, color); -- cgit v1.2.3