Clean up font handling

git-svn-id: svn://coreboot.org/openbios/openbios-devel@342 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-01-02 13:32:15 +00:00
parent b2692171f9
commit 2137312f95
13 changed files with 54 additions and 22 deletions

View File

@@ -9,6 +9,7 @@
#include "openbios/bindings.h"
#include "openbios/kernel.h"
#include "openbios/drivers.h"
#include "openbios/fontdata.h"
#include "openbios.h"
#include "video_subr.h"
#include "libc/vsprintf.h"
@@ -244,17 +245,14 @@ static void video_cls(void)
video_poscursor(xpos, ypos);
}
#ifdef CONFIG_DRIVER_VGA
#include "../../modules/font_8x16.c"
#endif
void video_init(void)
{
video=(unsigned char *)TEXT_BASE;
#ifdef CONFIG_DRIVER_VGA
vga_load_regs();
vga_font_load((unsigned char *)VGA_BASE, fontdata_8x16, 16, 256);
vga_font_load((unsigned char *)VGA_BASE, fontdata_8x16,
FONT_HEIGHT_8X16, 256);
vga_set_amode();
#endif
}