public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef8f76
)
coco3: devtty: initialize palettes to match vt.h definitions.
author
Brett Gordon
<beretta42@gmail.com>
Sun, 1 Nov 2015 16:38:11 +0000
(11:38 -0500)
committer
Brett Gordon
<beretta42@gmail.com>
Sun, 1 Nov 2015 16:41:08 +0000
(11:41 -0500)
Kernel/platform-coco3/devtty.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-coco3/devtty.c
b/Kernel/platform-coco3/devtty.c
index
df7daef
..
0322110
100644
(file)
--- 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 );
}