From 50c7bdbe826b5b425748a11273d14e3aed2ce851 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 27 Aug 2014 03:20:16 +0200 Subject: many changes and adaptions and VESA mode !! --- kernel/console.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel/console.c') diff --git a/kernel/console.c b/kernel/console.c index 42dc5d0..b1a9125 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -1,5 +1,7 @@ #include "console.h" +#define FOOLOS_CONSOLE + static int posx=0; static int posy=0; @@ -7,9 +9,11 @@ static int posy=0; void print_char_col(int x, int y, char c, char col) { +#ifdef FOOLOS_CONSOLE char* video_mem=(char *)SCR_VIDEOMEM+(x+y*SCR_REAL_WIDTH)*2; video_mem[0]=c; video_mem[1]=col; +#endif } void print_char(int x, int y, char c) @@ -67,6 +71,7 @@ void scr_put_string_nl(char *str) void scr_nextline() { +#ifdef FOOLOS_CONSOLE int i,x; posx=0; @@ -95,6 +100,7 @@ void scr_nextline() posy--; } +#endif } void scr_put_char(char ch,char col) -- cgit v1.2.3