summaryrefslogtreecommitdiff
path: root/kernel/vesa.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/vesa.c')
-rw-r--r--kernel/vesa.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/vesa.c b/kernel/vesa.c
index b7b4615..a3fc76c 100644
--- a/kernel/vesa.c
+++ b/kernel/vesa.c
@@ -57,6 +57,12 @@ static console_y;
static console_lines;
static 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)
@@ -180,12 +186,12 @@ void PutConsoleNL()
{
console_x=0;
console_y++;
- if(console_y>console_lines)console_y=1;
+ if(console_y>=console_lines)console_y=0;
+
for(int i=0;i<console_cols;i++)
{
- PutFont(' ',i*10,(console_y+1)*12,0);
+ PutFont(' ',i*10,(console_y)*12,0);
}
-
}