From owner-freebsd-bugs Mon Sep 18 20:50:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 340BE37B424 for ; Mon, 18 Sep 2000 20:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA10367; Mon, 18 Sep 2000 20:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from sun5.maizuru-ct.ac.jp (sun5.maizuru-ct.ac.jp [202.19.105.3]) by hub.freebsd.org (Postfix) with ESMTP id 0FCBF37B423 for ; Mon, 18 Sep 2000 20:49:03 -0700 (PDT) Received: from s-gikan2.maizuru-ct.ac.jp (s-gikan2.maizuru-ct.ac.jp [10.1.65.80]) by sun5.maizuru-ct.ac.jp (8.9.3/3.7Wpl200031721) with ESMTP id MAA14808 for ; Tue, 19 Sep 2000 12:47:48 +0900 (JST) Received: (from magara@localhost) by s-gikan2.maizuru-ct.ac.jp (8.9.3/3.7Wpl200080413) id MAA02783; Tue, 19 Sep 2000 12:48:57 +0900 (JST) Message-Id: <200009190348.MAA02783@s-gikan2.maizuru-ct.ac.jp> Date: Tue, 19 Sep 2000 12:48:57 +0900 (JST) From: magara@maizuru-ct.ac.jp Reply-To: magara@maizuru-ct.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/21385: About daemon_saver Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21385 >Category: misc >Synopsis: About daemon_saver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 18 20:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Kenichi Magara >Release: FreeBSD 3.5.1-RELEASE i386 >Organization: >Environment: FreeBSD(98)3.5R >Description: I prevented the end of line from flickering and changed some of charcters map. (change-request ^^;) >How-To-Repeat: All of Japanese architecture PC. (NEC PC98 series) >Fix: --- sys/modules/syscons/daemon/daemon_saver.c.orig Tue Aug 8 12:00:43 2000 +++ sys/modules/syscons/daemon/daemon_saver.c Mon Sep 18 12:16:50 2000 @@ -67,7 +67,7 @@ " /( )`", " \\ \\___ / |", " /- _ `-/ '", - " (/\\/ \\ \\ /\\", + " (/\\/^\\ \\ /\\", " / / | ` \\", " O O ) / |", " `-^--'`< '", @@ -89,8 +89,8 @@ " R R", " RR RR", " R RRRR R R", - " RR W RRR R", - " RWWW W R RR", + " RR R RRR R", + " RWWWWW R RR", " W W W R R", " B B W R R", " WWWWWWRR R", @@ -135,9 +135,17 @@ if (xlen <= 0) return; - for (y = yoff; y < ylen; y++) + for (y = yoff; y < ylen; y++) { +#ifdef PC98 + fillw(scr_map[0x20], + CONSOLE_VECT(xpos + xoff, ypos + y), xlen - xoff); + fillw(at2pc98((FG_LIGHTGREY|BG_BLACK)<<8), + CONSOLE_VECT(xpos + xoff, ypos + y), xlen - xoff); +#else fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20], CONSOLE_VECT(xpos + xoff, ypos + y), xlen - xoff); +#endif + } } static void @@ -178,7 +186,7 @@ if (dxdir < 0) { /* Moving left */ #ifdef PC98 *CONSOLE_VECT(xpos + x, ypos + y) = - scr_map[daemon_pic[y][x]]; + scr_map[daemon_pic[y][px]]; *CONSOLE_ATTR(xpos + x, ypos + y) = at2pc98(attr); #else @@ -187,9 +195,9 @@ #endif } else { /* Moving right */ #ifdef PC98 - *CONSOLE_VECT(xpos + DAEMON_MAX_WIDTH - x - 1, ypos + y) = - scr_map[xflip_symbol(daemon_pic[y][x])]; - *CONSOLE_ATTR(xpos + DAEMON_MAX_WIDTH - x - 1, ypos + y) = + *CONSOLE_VECT(xpos + DAEMON_MAX_WIDTH - px - 1, ypos + y) = + scr_map[xflip_symbol(daemon_pic[y][px])]; + *CONSOLE_ATTR(xpos + DAEMON_MAX_WIDTH - px - 1, ypos + y) = at2pc98(attr); #else *CONSOLE_VECT(xpos + DAEMON_MAX_WIDTH - px - 1, ypos + y) = @@ -205,8 +213,15 @@ { if (len <= 0) return; +#ifdef PC98 + fillw(scr_map[0x20], + CONSOLE_VECT(xpos + xoff, ypos), len - xoff); + fillw(at2pc98((FG_LIGHTGREY|BG_BLACK)<<8), + CONSOLE_VECT(xpos + xoff, ypos), len - xoff); +#else fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20], CONSOLE_VECT(xpos + xoff, ypos), len - xoff); +#endif } static void >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message