red-cyan is better than red-blue

This commit is contained in:
David Rose 2009-02-19 20:29:23 +00:00
parent 72f6174d7d
commit 74166de769
2 changed files with 12 additions and 2 deletions

View File

@ -190,11 +190,12 @@ ConfigVariableBool red_blue_stereo
"rendering."));
ConfigVariableString red_blue_stereo_colors
("red-blue-stereo-colors", "red blue",
("red-blue-stereo-colors", "red cyan",
PRC_DESC("This defines the color channels that are used for the left and "
"right eye, respectively, for red-blue-stereo mode. This should "
"be a two-word string, where each word is one of 'red', 'blue', "
"'green', or 'alpha'."));
"'green', 'cyan', 'magenta', 'yellow', or 'alpha', or a union "
"of two or more words separated by a vertical pipe (|)."));
ConfigVariableBool color_scale_via_lighting
("color-scale-via-lighting", true,

View File

@ -867,6 +867,15 @@ parse_color_mask(const string &word) {
} else if (w == "blue" || w == "b") {
result |= 0x004;
} else if (w == "yellow" || w == "y") {
result |= 0x003;
} else if (w == "magenta" || w == "m") {
result |= 0x005;
} else if (w == "cyan" || w == "c") {
result |= 0x006;
} else if (w == "alpha" || w == "a") {
result |= 0x008;