From patchwork Tue Sep 21 17:07:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 65351 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 AFB75B70AF for ; Wed, 22 Sep 2010 03:16:54 +1000 (EST) Received: from localhost ([127.0.0.1]:36237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy6SZ-0005S7-Gd for incoming@patchwork.ozlabs.org; Tue, 21 Sep 2010 13:16:51 -0400 Received: from [140.186.70.92] (port=32890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy6KG-00087i-Lo for qemu-devel@nongnu.org; Tue, 21 Sep 2010 13:08:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy6KE-0003nl-Vf for qemu-devel@nongnu.org; Tue, 21 Sep 2010 13:08:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64005) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy6KE-0003nV-LX for qemu-devel@nongnu.org; Tue, 21 Sep 2010 13:08:14 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8LH8DfU019225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 21 Sep 2010 13:08:14 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-82.ams2.redhat.com [10.36.4.82]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8LH8BoI027132; Tue, 21 Sep 2010 13:08:12 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 01B8B45128; Tue, 21 Sep 2010 19:08:05 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 21 Sep 2010 19:07:58 +0200 Message-Id: <1285088885-10931-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1285088885-10931-1-git-send-email-kraxel@redhat.com> References: <1285088885-10931-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Volker Ruppert , Gerd Hoffmann Subject: [Qemu-devel] [VGABIOS PATCH 04/11] - 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 Signed-off-by: Gerd Hoffmann --- 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);