diff options
author | Strangerke | 2014-02-13 00:00:43 +0100 |
---|---|---|
committer | Strangerke | 2014-02-13 00:01:41 +0100 |
commit | 12e9c31f415a89b99dc389432afd3f32575be23b (patch) | |
tree | 3be779be63e424e1e8d02a5b1742a5f14887aba0 /engines/cge/vga13h.cpp | |
parent | aaf9ebfd680dd733ce11fbcd1943f177f4487a40 (diff) | |
download | scummvm-rg350-12e9c31f415a89b99dc389432afd3f32575be23b.tar.gz scummvm-rg350-12e9c31f415a89b99dc389432afd3f32575be23b.tar.bz2 scummvm-rg350-12e9c31f415a89b99dc389432afd3f32575be23b.zip |
CGE: Add an option to toggle color blind mode from the launcher
Diffstat (limited to 'engines/cge/vga13h.cpp')
-rw-r--r-- | engines/cge/vga13h.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 2022b803a5..b469c7197d 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -26,6 +26,7 @@ */ #include "common/array.h" +#include "common/config-manager.h" #include "common/rect.h" #include "graphics/palette.h" #include "cge/general.h" @@ -637,6 +638,10 @@ Vga::Vga(CGEEngine *vm) : _frmCnt(0), _msg(NULL), _name(NULL), _setPal(false), _ _page[idx]->create(320, 200, Graphics::PixelFormat::createFormatCLUT8()); } + if (ConfMan.getBool("enable_color_blind")) + _mono = 1; + + _oldColors = (Dac *)malloc(sizeof(Dac) * kPalCount); _newColors = (Dac *)malloc(sizeof(Dac) * kPalCount); getColors(_oldColors); |