From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQZhr-0006gp-Lo for qemu-devel@nongnu.org; Wed, 19 May 2004 18:38:35 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQZhJ-0006aJ-Rj for qemu-devel@nongnu.org; Wed, 19 May 2004 18:38:32 -0400 Received: from [200.83.1.24] (helo=mx01.vtr.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQZhJ-0006WL-Ar for qemu-devel@nongnu.org; Wed, 19 May 2004 18:38:01 -0400 Received: from hudson.vtr.net (200.83.1.22) by mx01.vtr.net (7.0.027) id 408CB5F9008D7B1D for qemu-devel@nongnu.org; Wed, 19 May 2004 18:37:20 -0400 Received: from fw.aplik (200.104.152.103) by hudson.vtr.net (7.0.027) (authenticated as aplik@vtr.net) id 4090B18D006A3E22 for qemu-devel@nongnu.org; Wed, 19 May 2004 18:37:20 -0400 Received: from pcdaniel.aplik (daniel@pcdaniel.aplik [192.168.0.4]) by fw.aplik (8.11.6/8.11.6) with SMTP id i4JNbFj32506 for ; Wed, 19 May 2004 19:37:15 -0400 Date: Wed, 19 May 2004 18:37:16 -0400 From: Daniel Serpell Message-ID: <20040519223716.GA6049@aplik.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] VGA font problem (FC2 install) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.