Improve color blindness handling

Rename some things and use a swtich instead of if.
This commit is contained in:
Michael Vetter
2019-12-12 14:23:07 +01:00
parent 2750194279
commit 3258211f27
3 changed files with 16 additions and 12 deletions

View File

@@ -43,8 +43,8 @@
typedef enum {
COLOR_PROFILE_DEFAULT,
COLOR_PROFILE_REDGREEN,
COLOR_PROFILE_BLUE,
COLOR_PROFILE_REDGREEN_BLINDNESS,
COLOR_PROFILE_BLUE_BLINDNESS,
} color_profile;
struct color_def {