Fix initial palette values

These match the System3.9 default colors that came from the default
system colors in Windows 256-color mode [1].

[1] https://en.wikipedia.org/wiki/List_of_software_palettes#Microsoft_Windows_default_20-color_palette
This commit is contained in:
kichikuou
2024-01-01 12:25:43 +09:00
parent c0dbae8202
commit 7b535b371a
+18 -1
View File
@@ -56,8 +56,25 @@ static void palette_changed(void) {
static void initPal(void) {
static const Color initial_palette[256] = {
[ 0] = { 0, 0, 0},
[ 7] = {255, 255, 255},
[ 1] = {128, 0, 0},
[ 2] = { 0, 128, 0},
[ 3] = {128, 128, 0},
[ 4] = { 0, 0, 128},
[ 5] = {128, 0, 128},
[ 6] = { 0, 128, 128},
[ 7] = {192, 192, 192},
[ 8] = {192, 220, 192},
[ 9] = {166, 202, 240},
[ 15] = {255, 255, 255},
[246] = {255, 251, 240},
[247] = {160, 160, 164},
[248] = {128, 128, 128},
[249] = {255, 0, 0},
[250] = { 0, 255, 0},
[251] = {255, 255, 0},
[252] = { 0, 0, 255},
[253] = {255, 0, 255},
[254] = { 0, 255, 255},
[255] = {255, 255, 255},
};
memcpy(nact->ags.pal, initial_palette, sizeof(initial_palette));