[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] VGA font problem (FC2 install)
From: |
Daniel Serpell |
Subject: |
[Qemu-devel] VGA font problem (FC2 install) |
Date: |
Wed, 19 May 2004 18:37:16 -0400 |
User-agent: |
Mutt/1.5.6i |
When trying to install Fedora Core 2, the instalation switches the
text font and text becomes unreadable, so it's difficult to continue.
Browsing at http://osdev.neopages.net/FreeVGA/vga/vgatext.htm#fonts
they describe the following:
" If bit 3 of a character's attribute byte is set to 1, then
the character set selected by Character Set A Select field,
otherwise the character set specified by Character Set B
Select field is used. "
But current code in QEMU is the oposite. So, I changed it with the
patch below, and FC2 installed!
Index: hw/vga.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/vga.c,v
retrieving revision 1.26
diff -u -r1.26 vga.c
--- hw/vga.c 29 Apr 2004 19:21:16 -0000 1.26
+++ hw/vga.c 19 May 2004 22:21:49 -0000
@@ -1228,7 +1228,7 @@
ch = ch_attr & 0xff;
cattr = ch_attr >> 8;
#endif
- font_ptr = font_base[(cattr >> 3) & 1];
+ font_ptr = font_base[1 - ((cattr >> 3) & 1)];
font_ptr += 32 * 4 * ch;
bgcol = palette[cattr >> 4];
fgcol = palette[cattr & 0x0f];
Daniel.
- [Qemu-devel] VGA font problem (FC2 install),
Daniel Serpell <=