From: Daniel Serpell <daniel@atmlab.utfsm.cl>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] VGA font problem (FC2 install)
Date: Wed, 19 May 2004 18:37:16 -0400 [thread overview]
Message-ID: <20040519223716.GA6049@aplik.cl> (raw)
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.
next reply other threads:[~2004-05-19 22:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-19 22:37 Daniel Serpell [this message]
2004-05-25 8:19 ` [Qemu-devel] VGA font problem (FC2 install) Lennert Buytenhek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040519223716.GA6049@aplik.cl \
--to=daniel@atmlab.utfsm.cl \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).