diff options
author | Eugene Sandulenko | 2016-03-28 00:48:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-03-28 00:54:05 +0200 |
commit | 960d14d79d63e7766e382bf940b49482c0746671 (patch) | |
tree | 7c8c45be4f4f59cca52d2242d46e6e45102383c4 /engines | |
parent | 7590dbf472c760d0e7dd07267c9d0072b4796e54 (diff) | |
download | scummvm-rg350-960d14d79d63e7766e382bf940b49482c0746671.tar.gz scummvm-rg350-960d14d79d63e7766e382bf940b49482c0746671.tar.bz2 scummvm-rg350-960d14d79d63e7766e382bf940b49482c0746671.zip |
SAGA: Explicitely mark versions which require color shifting in interface. Fixes bug #7092
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/detection_tables.h | 6 | ||||
-rw-r--r-- | engines/saga/interface.cpp | 2 | ||||
-rw-r--r-- | engines/saga/saga.cpp | 2 | ||||
-rw-r--r-- | engines/saga/saga.h | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/engines/saga/detection_tables.h b/engines/saga/detection_tables.h index f570c5e4cb..91f3395bda 100644 --- a/engines/saga/detection_tables.h +++ b/engines/saga/detection_tables.h @@ -729,7 +729,7 @@ static const SAGAGameDescription gameDescriptions[] = { }, Common::DE_DEU, Common::kPlatformDOS, - ADGF_NO_FLAGS, + GF_IHNM_COLOR_FIX, GUIO1(GUIO_NOASPECT) }, GID_IHNM, @@ -787,7 +787,7 @@ static const SAGAGameDescription gameDescriptions[] = { }, Common::ES_ESP, Common::kPlatformDOS, - ADGF_NO_FLAGS, + GF_IHNM_COLOR_FIX, GUIO1(GUIO_NOASPECT) }, GID_IHNM, @@ -816,7 +816,7 @@ static const SAGAGameDescription gameDescriptions[] = { }, Common::FR_FRA, Common::kPlatformDOS, - ADGF_NO_FLAGS, + GF_IHNM_COLOR_FIX, GUIO1(GUIO_NOASPECT) }, GID_IHNM, diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index b580e2131a..cb09d53762 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -1879,7 +1879,7 @@ void Interface::drawStatusBar() { // Fixes bug #1848016 - "IHNM: Wrong Subtitles Color (Spanish)". This // also applies to the German and French versions (bug #7064 - "IHNM: // text mistake in german version"). - int offset = (_vm->getLanguage() == Common::ES_ESP || _vm->getLanguage() == Common::DE_DEU || _vm->getLanguage() == Common::FR_FRA) ? 1 : 0; + int offset = (_vm->getFeatures() & GF_IHNM_COLOR_FIX) ? 1 : 0; // Disable the status text in IHNM when the chapter is 8 if (_vm->getGameId() == GID_IHNM && _vm->_scene->currentChapterNumber() == 8) diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 77a21e7f93..649888e7ea 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -582,7 +582,7 @@ ColorId SagaEngine::KnownColor2ColorId(KnownColor knownColor) { // Fixes bug #1848016 - "IHNM: Wrong Subtitles Color (Spanish)". This // also applies to the German and French versions (bug #7064 - "IHNM: // text mistake in german version"). - int offset = (getLanguage() == Common::ES_ESP || getLanguage() == Common::DE_DEU || getLanguage() == Common::FR_FRA) ? 1 : 0; + int offset = (getFeatures() & GF_IHNM_COLOR_FIX) ? 1 : 0; switch (knownColor) { case(kKnownColorTransparent): diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 9c7b2f5295..06cb411e5a 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -139,7 +139,8 @@ enum GameFeatures { GF_ITE_FLOPPY = 1 << 0, GF_ITE_DOS_DEMO = 1 << 1, GF_EXTRA_ITE_CREDITS = 1 << 2, - GF_8BIT_UNSIGNED_PCM = 1 << 3 + GF_8BIT_UNSIGNED_PCM = 1 << 3, + GF_IHNM_COLOR_FIX = 1 << 4 }; enum VerbTypeIds { |