nanogui: Testing the 4 planes Vga Driver - Bare hardware
Subject:
RE: Testing the 4 planes Vga Driver - Bare hardware
From:
Greg Haerr ####@####.####
Date:
6 Oct 1999 16:09:21 -0000
Message-Id: <01BF0FE2.6A4B79A0.greg@censoft.com>
: : Now, I need to understand how should I setup
: : rom_char_addr. My target does not have BIOS.
: : I have tried this:
: :
: : extern FONT font_rom8x16; /* font generated with convrom.c */
: : FONT *font_ptr = &font_rom8x16;
: : rom_char_addr = (FARADDR)( font_ptr->bits );
I figured this out last night. You can either use the internal
font draw routines linked into drivers like scr_bogl and scr_svga, or,
the reason that the rom font code doesn't work is because rom fonts
are 8 bits wide and our internal font format is 16 bits wide. So you would
have to modify the font draw routine in your driver to assume 8 bits wide
rather than 8.
Have fun!
Greg