fix color definitions

This commit is contained in:
Kelvin Sherlock 2013-08-21 00:24:27 -04:00
parent 0485d9a15c
commit f3b42ae2c8
1 changed files with 22 additions and 17 deletions

View File

@ -91,24 +91,29 @@ void init_screen(void)
#define BLACK 0x0000 #define BLACK 0x0000
#define BLUE 0x000f #define BLUE 0x000f
#define GREEN 0x00f0 #define GREEN 0x00f0
#define RED 0x0f00
static ColorTable ct = static ColorTable ct =
{ {
0x0000, //black BLACK, // background
0x00f0, //green 0x5555 RED, // underline / blink
0x0f00, //blue 0xaaaa BLUE, // bold
WHITE, //white 0xffff GREEN, // foreground
0x0000, //black
0x00f0, //green BLACK,
0x0f00, //blue RED,
WHITE, //white BLUE,
0x0000, //black GREEN,
0x00f0, //green
0x0f00, //blue BLACK,
WHITE, //white RED,
0x0000, //black BLUE,
0x00f0, //green GREEN,
0x0f00, //blue
WHITE //white BLACK,
RED,
BLUE,
GREEN,
}; };
int i; int i;
@ -132,7 +137,7 @@ int i;
SetMasterSCB(0xc080); SetMasterSCB(0xc080);
SetAllSCBs(0xc080); SetAllSCBs(0xc080);
InitColorTable(ct); //InitColorTable(ct);
for (i = 0; i < 15; i++) for (i = 0; i < 15; i++)
SetColorTable(i, ct); SetColorTable(i, ct);