From magara@maizuru-ct.ac.jp  Mon Sep 18 20:49:05 2000
Return-Path: <magara@maizuru-ct.ac.jp>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: About daemon_saver
X-Send-Pr-Version: 3.2

>Number:         21385
>Category:       misc
>Synopsis:       About daemon_saver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yokota
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 18 20:50:00 PDT 2000
>Closed-Date:    Fri Jul 20 07:42:08 PDT 2001
>Last-Modified:  Fri Jul 20 07:42:48 PDT 2001
>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:
Responsible-Changed-From-To: freebsd-bugs->yokota 
Responsible-Changed-By: dirk 
Responsible-Changed-When: Thu Nov 9 04:34:52 PST 2000 
Responsible-Changed-Why:  
Over to Mr. syscons. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21385 
State-Changed-From-To: open->closed 
State-Changed-By: yokota 
State-Changed-When: Fri Jul 20 07:42:08 PDT 2001 
State-Changed-Why:  
Equivalent modifications are in RELENG_4 and 5.0-CURRENT. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21385 
>Unformatted:
