* [Qemu-devel] VGA font problem (FC2 install)
@ 2004-05-19 22:37 Daniel Serpell
2004-05-25 8:19 ` Lennert Buytenhek
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Serpell @ 2004-05-19 22:37 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] VGA font problem (FC2 install)
2004-05-19 22:37 [Qemu-devel] VGA font problem (FC2 install) Daniel Serpell
@ 2004-05-25 8:19 ` Lennert Buytenhek
0 siblings, 0 replies; 2+ messages in thread
From: Lennert Buytenhek @ 2004-05-25 8:19 UTC (permalink / raw)
To: qemu-devel
Just to say "me too!", I had this problem as well, and I just tried
latest CVS and it doesn't happen anymore.
On Wed, May 19, 2004 at 06:37:16PM -0400, Daniel Serpell wrote:
> 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!
>
> [snip]
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-25 8:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 22:37 [Qemu-devel] VGA font problem (FC2 install) Daniel Serpell
2004-05-25 8:19 ` Lennert Buytenhek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).