Commit 074a86ac authored by deuce's avatar deuce
Browse files

Add Atari palette (blue and blue)

Colours taken from Wikipedia image.
parent 87d37f48
......@@ -84,10 +84,10 @@ struct video_params vparams[40] = {
/* Commodore 128 80x25 mode */
{C128_80X25, COLOUR_PALETTE, 80, 25, 0, 7, 8, 8},
/* Atari 800 40x24 mode */
{ATARI_40X24, MONO_PALETTE, 40, 24, 0, 7, 8, 8},
{ATARI_40X24, ATARI_PALETTE, 40, 24, 0, 7, 8, 8},
};
unsigned char palettes[4][16] = {
unsigned char palettes[5][16] = {
/* Mono */
{ 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07
......@@ -104,9 +104,13 @@ unsigned char palettes[4][16] = {
{ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
},
/* Atari */
{ 0x20, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21,
0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21
},
};
struct dac_colors dac_default[32] = {
struct dac_colors dac_default[34] = {
{0, 0, 0}, {0, 0, 168}, {0, 168, 0}, {0, 168, 168},
{168, 0, 0}, {168, 0, 168}, {168, 84, 0}, {168, 168, 168},
{84, 84, 84}, {84, 84, 255}, {84, 255, 84}, {84, 255, 255},
......@@ -120,6 +124,9 @@ struct dac_colors dac_default[32] = {
{0x43, 0x39, 0x00}, {0x9a, 0x67, 0x59}, {0x44, 0x44, 0x44},
{0x6c, 0x6c, 0x6c}, {0x9a, 0xd2, 0x84}, {0x6c, 0x5e, 0xb5},
{0x95, 0x95, 0x95},
/* Atari Colours */
/* BG, FG */
{0, 81, 129}, {96, 183, 231}
};
int find_vmode(int mode)
......
......@@ -85,12 +85,13 @@ enum {
,GREYSCALE_PALETTE
,COLOUR_PALETTE
,C64_PALETTE
,ATARI_PALETTE
};
extern struct video_params vparams[40];
#define NUMMODES (sizeof(vparams) / sizeof(struct video_params))
extern unsigned char palettes[4][16];
extern struct dac_colors dac_default[32];
extern unsigned char palettes[5][16];
extern struct dac_colors dac_default[34];
extern char vga_font_bitmap[4096];
extern char vga_font_bitmap14[3584];
extern char vga_font_bitmap8[2048];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment