diff options
author | Colin Snover | 2017-09-09 15:53:41 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-09 23:29:57 -0500 |
commit | f200cc110fbdecb9472cc1503b6d011802f6986b (patch) | |
tree | cfdc2c8b412a33ba941518d7b51f7d4c35c41c9f /engines | |
parent | e137d01967021d8fceef45c727615c797a9cdd91 (diff) | |
download | scummvm-rg350-f200cc110fbdecb9472cc1503b6d011802f6986b.tar.gz scummvm-rg350-f200cc110fbdecb9472cc1503b6d011802f6986b.tar.bz2 scummvm-rg350-f200cc110fbdecb9472cc1503b6d011802f6986b.zip |
SCI32: Send correct color depth to Phant2
This is not known to fix any particular issue, but the game does
set some flags internally if it's running in 256-color Windows,
which is possibly undesirable since we do run 16-bit videos
regardless.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 6c5dcd16a9..af3b7bbd00 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -648,7 +648,11 @@ reg_t kPlatform32(EngineState *s, int argc, reg_t *argv) { error("Unknown platform %d", g_sci->getPlatform()); } case kGetColorDepth: - return make_reg(0, /* 256 color */ 2); + if (g_sci->getGameId() == GID_PHANTASMAGORIA2) { + return make_reg(0, /* 16-bit color */ 3); + } else { + return make_reg(0, /* 256 color */ 2); + } case kGetCDSpeed: // The value `4` comes from Rama DOS resource.cfg installed in DOSBox, // and seems to correspond to the highest expected CD speed value |