From owner-cvs-sys Mon Jun 30 06:38:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA24865 for cvs-sys-outgoing; Mon, 30 Jun 1997 06:38:00 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA24720; Mon, 30 Jun 1997 06:33:45 -0700 (PDT) From: Kazutaka YOKOTA Received: (from yokota@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA17811; Mon, 30 Jun 1997 06:31:57 -0700 (PDT) Date: Mon, 30 Jun 1997 06:31:57 -0700 (PDT) Message-Id: <199706301331.GAA17811@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/i386/isa syscons.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk yokota 1997/06/30 06:31:57 PDT Modified files: sys/i386/isa syscons.c Log: Fixes annoying behavior and a bug regarding the destructive cursor (CHAR_CURSOR) 1. Reduced the number of calls to set_destructive_cursor(). The destructive cursor produced noticeable overhead on the system. It was caused by draw_cursor_image() calling set_destructive_cursor() every so often. set_destructive_cursor() absolutely needs to be called when a) the character code under the cursor has changed either because the cursor moved or because the screen was updated or the mouse pointer overlapped the cursor. b) Or a new font has been loaded, c) or the video mode has been changed, d) or the cursor shape has been changed, e) or the user switched virtual consoles. 2. Turn off the configuration flag CHAR_CURSOR (destructive cursor) in scattach() if we have a non-VGA card. The destructive cursor works only for VGA. 3. Removed redundant calls to set_destructive_cursor() in some places. 4. Fixed the "disappearing mouse pointer" problem. The mouse pointer looked hidden under the destructive cursor when it overlaped the cursor. A slightly different version of the patch was reviewd and OKed by sos and ache. Revision Changes Path 1.220 +65 -28 src/sys/i386/isa/syscons.c