From patchwork Fri Jun 18 10:37:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 56168 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 92EF01007D3 for ; Fri, 18 Jun 2010 20:52:23 +1000 (EST) Received: from localhost ([127.0.0.1]:50127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPZBM-0002FB-Ck for incoming@patchwork.ozlabs.org; Fri, 18 Jun 2010 06:52:20 -0400 Received: from [140.186.70.92] (port=35772 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPZ5H-0007jg-96 for qemu-devel@nongnu.org; Fri, 18 Jun 2010 06:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPZ1N-00037B-LT for qemu-devel@nongnu.org; Fri, 18 Jun 2010 06:42:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28063) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPZ0o-00030x-Bm for qemu-devel@nongnu.org; Fri, 18 Jun 2010 06:42:01 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5IAcUYH027963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 Jun 2010 06:39:40 -0400 Received: from rincewind.home.kraxel.org (vpn1-6-66.ams2.redhat.com [10.36.6.66]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5IAbwmA026952; Fri, 18 Jun 2010 06:37:59 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 94CEA41635; Fri, 18 Jun 2010 12:37:57 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 18 Jun 2010 12:37:56 +0200 Message-Id: <1276857477-14201-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1276857477-14201-1-git-send-email-kraxel@redhat.com> References: <1276857477-14201-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Volker Ruppert Subject: [Qemu-devel] [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);