From: Brett Gordon Date: Sun, 1 Nov 2015 16:38:11 +0000 (-0500) Subject: coco3: devtty: initialize palettes to match vt.h definitions. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6374395834618f2debc5a40041873170a64fb137;p=FUZIX.git coco3: devtty: initialize palettes to match vt.h definitions. --- 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 ); }