From patchwork Thu Aug 19 10:25:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 62130 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A7575B6EF7 for ; Thu, 19 Aug 2010 20:26:55 +1000 (EST) Received: from localhost ([127.0.0.1]:52093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om2Kf-0007hD-5V for incoming@patchwork.ozlabs.org; Thu, 19 Aug 2010 06:26:49 -0400 Received: from [140.186.70.92] (port=59306 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om2JB-0007h5-5L for qemu-devel@nongnu.org; Thu, 19 Aug 2010 06:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Om2J9-0004xS-Us for qemu-devel@nongnu.org; Thu, 19 Aug 2010 06:25:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61361) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om2J9-0004wk-Mp for qemu-devel@nongnu.org; Thu, 19 Aug 2010 06:25:15 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7JAPC0B015777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Aug 2010 06:25:12 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-195.ams2.redhat.com [10.36.4.195]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7JAPAYN027983; Thu, 19 Aug 2010 06:25:11 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 6A07040624; Thu, 19 Aug 2010 12:25:09 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 19 Aug 2010 12:25:07 +0200 Message-Id: <1282213508-8654-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1282213508-8654-1-git-send-email-kraxel@redhat.com> References: <1282213508-8654-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Volker Ruppert Subject: [Qemu-devel] [RESEND VGABIOS PATCH 4/5] - biosfn_write_teletype: fixed attribute when scrolling in text mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Volker Ruppert --- vgabios.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vgabios.c b/vgabios.c index fbc3588..ea3aae8 100644 --- a/vgabios.c +++ b/vgabios.c @@ -2039,7 +2039,9 @@ Bit8u car;Bit8u page;Bit8u attr;Bit8u flag; { if(vga_modes[line].class==TEXT) { - biosfn_scroll(0x01,0x07,0,0,nbrows-1,nbcols-1,page,SCROLL_UP); + address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+(ycurs-1)*nbcols)*2; + attr=read_byte(vga_modes[line].sstart,address+1); + biosfn_scroll(0x01,attr,0,0,nbrows-1,nbcols-1,page,SCROLL_UP); } else { @@ -2047,7 +2049,7 @@ Bit8u car;Bit8u page;Bit8u attr;Bit8u flag; } ycurs-=1; } - + // Set the cursor for the page cursor=ycurs; cursor<<=8; cursor+=xcurs; biosfn_set_cursor_pos(page,cursor);