diff options
author | Jody Northup | 2009-06-10 05:35:54 +0000 |
---|---|---|
committer | Jody Northup | 2009-06-10 05:35:54 +0000 |
commit | 58a348fd18727aab57c0f4f8ab4cc5ad893ee795 (patch) | |
tree | 62e2599fe1de7016bfad027fce53acaad78306b1 /engines/scumm | |
parent | 0a793f08a4d198f3f766214ed4ce85ac51ccea5e (diff) | |
download | scummvm-rg350-58a348fd18727aab57c0f4f8ab4cc5ad893ee795.tar.gz scummvm-rg350-58a348fd18727aab57c0f4f8ab4cc5ad893ee795.tar.bz2 scummvm-rg350-58a348fd18727aab57c0f4f8ab4cc5ad893ee795.zip |
Scumm engine now dynamically requests 16-bit color based on game features, (using ad-hoc request format)
svn-id: r41417
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/scumm.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 0599139778..3d0a2d0bc2 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1083,6 +1083,12 @@ Common::Error ScummEngine::init() { // CJK FT and DIG use usual NUT fonts, not FM-TOWNS ROM, so // there is no text surface for them. This takes that into account (_screenWidth * _textSurfaceMultiplier > 320)); + } else if (_game.features & GF_16BIT_COLOR) { + int format = Graphics::kFormatRGB555 | Graphics::kFormatRGB; + Common::List<Graphics::ColorFormat> formatList; + formatList.push_back((Graphics::ColorFormat) format); + formatList.push_back(Graphics::kFormat8Bit); + initGraphics(_screenWidth, _screenHeight, _screenWidth > 320, formatList); } else { initGraphics(_screenWidth, _screenHeight, _screenWidth > 320); } |