[client] egl: added colorblind support (egl:cbMode=0/1/2/3)

Based on http://www.daltonize.org/search/label/Daltonize

0 = Off
1 = Protanope
2 = Deuteranope
3 = Tritanope
This commit is contained in:
Geoffrey McRae
2020-11-09 06:59:54 +11:00
parent ed95f8863d
commit dd7e0ea8c6
5 changed files with 103 additions and 2 deletions

View File

@@ -134,6 +134,13 @@ static struct Option egl_options[] =
.type = OPTION_TYPE_INT,
.value.x_int = 0
},
{
.module = "egl",
.name = "cbMode",
.description = "Colorblind Mode (0 = Off, 1 = Protanope, 2 = Deuteranope, 3 = Tritanope)",
.type = OPTION_TYPE_INT,
.value.x_int = 0
},
{0}
};