diff options
author | Jaromir Wysoglad | 2019-06-29 00:08:55 +0200 |
---|---|---|
committer | Thierry Crozat | 2019-07-28 15:09:14 +0100 |
commit | 061d14e7996cce22a2012aea8514a58c10c5ee74 (patch) | |
tree | 5a5899d5426cbac52eca6abea76ce24e46792d09 /engines/supernova | |
parent | 3a08ad99d920fb233d2d8f9b9d5cdd4faf126754 (diff) | |
download | scummvm-rg350-061d14e7996cce22a2012aea8514a58c10c5ee74.tar.gz scummvm-rg350-061d14e7996cce22a2012aea8514a58c10c5ee74.tar.bz2 scummvm-rg350-061d14e7996cce22a2012aea8514a58c10c5ee74.zip |
SUPERNOVA: Add ciphered text image translation.
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/graphics.cpp | 9 | ||||
-rw-r--r-- | engines/supernova/screen.cpp | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/supernova/graphics.cpp b/engines/supernova/graphics.cpp index 479a12e3df..a85818160d 100644 --- a/engines/supernova/graphics.cpp +++ b/engines/supernova/graphics.cpp @@ -161,6 +161,8 @@ bool MSNImage::loadFromEngineDataFile() { } else if (_MSPart == 2) { if (_filenumber == 15) name = "M015"; + else if (_filenumber == 28) + name = "M028"; else return false; @@ -292,16 +294,15 @@ bool MSNImage::loadStream(Common::SeekableReadStream &stream) { bool MSNImage::loadSections() { bool isNewspaper = (_MSPart == 1 && (_filenumber == 1 || _filenumber == 2)) || (_MSPart == 2 && _filenumber == 38); - bool isCypheredText = _MSPart == 2 && _filenumber == 28 && ConfMan.get("language") == "en"; - int imageWidth = isNewspaper || isCypheredText ? 640 : 320; - int imageHeight = isNewspaper || isCypheredText ? 480 : 200; + int imageWidth = isNewspaper ? 640 : 320; + int imageHeight = isNewspaper ? 480 : 200; _pitch = imageWidth; for (int section = 0; section < _numSections; ++section) { Graphics::Surface *surface = new Graphics::Surface; _sectionSurfaces.push_back(surface); - if (isNewspaper || isCypheredText) { + if (isNewspaper) { Color color1 = isNewspaper ? kColorWhite63 : kColorWhite44; surface->create(imageWidth, imageHeight, g_system->getScreenFormat()); byte *surfacePixels = static_cast<byte *>(surface->getPixels()); diff --git a/engines/supernova/screen.cpp b/engines/supernova/screen.cpp index 5cdbb4ccff..6a76daca92 100644 --- a/engines/supernova/screen.cpp +++ b/engines/supernova/screen.cpp @@ -375,8 +375,7 @@ void Screen::renderImageSection(const MSNImage *image, int section, bool invert) if (_vm->_MSPart == 1) bigImage = image->_filenumber == 1 || image->_filenumber == 2; else if (_vm->_MSPart == 2) - bigImage = image->_filenumber == 38 || - (image->_filenumber == 28 && ConfMan.get("language") == "en"); + bigImage = image->_filenumber == 38; if (bigImage) { sectionRect.setWidth(640); sectionRect.setHeight(480); |