aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/syscons/daemon/daemon_saver.c10
-rw-r--r--sys/dev/syscons/snake/snake_saver.c4
-rw-r--r--sys/dev/syscons/star/star_saver.c4
3 files changed, 18 insertions, 0 deletions
diff --git a/sys/dev/syscons/daemon/daemon_saver.c b/sys/dev/syscons/daemon/daemon_saver.c
index b056b486a039e..5d5c5393b1fd3 100644
--- a/sys/dev/syscons/daemon/daemon_saver.c
+++ b/sys/dev/syscons/daemon/daemon_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define DAEMON_MAX_WIDTH 32
#define DAEMON_MAX_HEIGHT 19
@@ -200,9 +204,15 @@ draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
int x;
for (x = xoff; x < len; x++) {
+#ifdef PC98
+ sc_vtb_putc(&sc->cur_scp->scr,
+ ypos*sc->cur_scp->xsize + xpos + x,
+ sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
+#else
sc_vtb_putc(&sc->cur_scp->scr,
ypos*sc->cur_scp->xsize + xpos + x,
sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
+#endif
}
}
diff --git a/sys/dev/syscons/snake/snake_saver.c b/sys/dev/syscons/snake/snake_saver.c
index e4277e3beee29..a9a067ac4ee72 100644
--- a/sys/dev/syscons/snake/snake_saver.c
+++ b/sys/dev/syscons/snake/snake_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
static char *message;
static int *messagep;
static int messagelen;
diff --git a/sys/dev/syscons/star/star_saver.c b/sys/dev/syscons/star/star_saver.c
index 27e992133ee73..00088528c8c36 100644
--- a/sys/dev/syscons/star/star_saver.c
+++ b/sys/dev/syscons/star/star_saver.c
@@ -41,6 +41,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define NUM_STARS 50
static int blanked;