Date: Tue, 19 Sep 2000 12:48:57 +0900 (JST) From: magara@maizuru-ct.ac.jp To: FreeBSD-gnats-submit@freebsd.org Subject: misc/21385: About daemon_saver Message-ID: <200009190348.MAA02783@s-gikan2.maizuru-ct.ac.jp>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009190348.MAA02783>
