diff options
author | Paul Gilbert | 2015-05-01 16:32:09 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-05-01 16:32:09 -1000 |
commit | 1e2ed9e3bc98ad7b0295df8484710a8223bfd01d (patch) | |
tree | c5087e864d8a07fa8bbe4ee090eb987ba02aab32 /engines | |
parent | cce0b5583160f1ea2aee2b294527e036165a84f1 (diff) | |
download | scummvm-rg350-1e2ed9e3bc98ad7b0295df8484710a8223bfd01d.tar.gz scummvm-rg350-1e2ed9e3bc98ad7b0295df8484710a8223bfd01d.tar.bz2 scummvm-rg350-1e2ed9e3bc98ad7b0295df8484710a8223bfd01d.zip |
SHERLOCK: Further fixes for credits display
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/scalpel/scalpel.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp index 5274cbbec4..a90408fe11 100644 --- a/engines/sherlock/scalpel/scalpel.cpp +++ b/engines/sherlock/scalpel/scalpel.cpp @@ -385,10 +385,10 @@ bool ScalpelEngine::showStreetCutscene() { */ bool ScalpelEngine::scrollCredits() { // Load the images for displaying credit text - _titleOverride = "TITLE.LIB"; - ImageFile creditsImages("credits.vgs", true); + Common::SeekableReadStream *stream = _res->load("credits.vgs", "title.lib"); + ImageFile creditsImages(*stream); _screen->setPalette(creditsImages._palette); - _titleOverride = ""; + delete stream; // Save a copy of the screen background for use in drawing each credit frame _screen->_backBuffer1.blitFrom(*_screen); @@ -399,12 +399,10 @@ bool ScalpelEngine::scrollCredits() { _screen->blitFrom(_screen->_backBuffer1); // Write the text appropriate for the next frame - if (idx < 200) - _screen->transBlitFrom(creditsImages[0], Common::Point(10, -idx), false, 0); - if (idx > 0 && idx < 400) - _screen->transBlitFrom(creditsImages[1], Common::Point(10, 200 - idx), false, 0); + if (idx < 400) + _screen->transBlitFrom(creditsImages[0], Common::Point(10, 200 - idx), false, 0); if (idx > 200) - _screen->transBlitFrom(creditsImages[2], Common::Point(10, 400 - idx), false, 0); + _screen->transBlitFrom(creditsImages[1], Common::Point(10, 400 - idx), false, 0); // Don't show credit text on the top and bottom ten rows of the screen _screen->blitFrom(_screen->_backBuffer1, Common::Point(0, 0), Common::Rect(0, 0, SHERLOCK_SCREEN_WIDTH, 10)); |