From 6374395834618f2debc5a40041873170a64fb137 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Sun, 1 Nov 2015 11:38:11 -0500 Subject: [PATCH] coco3: devtty: initialize palettes to match vt.h definitions. --- Kernel/platform-coco3/devtty.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index df7daef9..03221107 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -508,6 +508,10 @@ inval: udata.u_error = EINVAL; /* Initial Setup stuff down here. */ +uint8_t rgb_def_pal[16]={ + 0, 8, 32, 40, 16, 24, 48, 63, + 0, 8, 32, 40, 16, 24, 48, 63 +}; void devtty_init() { @@ -520,5 +524,7 @@ void devtty_init() memcpy( &(ptytab[i].vmod), &(mode[defmode]), sizeof( struct mode_s ) ); } apply_gime( 1 ); /* apply initial tty1 to regs */ + /* make video palettes match vt.h's definitions. */ + memcpy( (uint8_t *)0xffb0, rgb_def_pal, 16 ); } -- 2.34.1