diff options
author | Paul Gilbert | 2008-01-05 10:53:27 +0000 |
---|---|---|
committer | Paul Gilbert | 2008-01-05 10:53:27 +0000 |
commit | 735ea1eaaae1036771f858fa5656f2ce71ba8e9d (patch) | |
tree | 33eb5f53685016490a28d9552414828121cae6b8 | |
parent | 140d914c1813ca857a9db8e5b8218f618b81fbdf (diff) | |
download | scummvm-rg350-735ea1eaaae1036771f858fa5656f2ce71ba8e9d.tar.gz scummvm-rg350-735ea1eaaae1036771f858fa5656f2ce71ba8e9d.tar.bz2 scummvm-rg350-735ea1eaaae1036771f858fa5656f2ce71ba8e9d.zip |
Fix to show credits screen correctly in EGA mode
svn-id: r30232
-rw-r--r-- | engines/lure/game.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 938cd173a8..ea084044c3 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -859,16 +859,23 @@ void Game::doShowCredits() { Mouse &mouse = Mouse::getReference(); Screen &screen = Screen::getReference(); Room &room = Room::getReference(); + bool isEGA = LureEngine::getReference().isEGA(); Sound.pause(); mouse.cursorOff(); - Palette p(CREDITS_RESOURCE_ID - 1); + Surface *s = Surface::getScreen(CREDITS_RESOURCE_ID); - screen.setPaletteEmpty(); - s->copyToScreen(0, 0); - screen.setPalette(&p); + + if (isEGA) { + s->copyToScreen(0, 0); + } else { + Palette p(CREDITS_RESOURCE_ID - 1); + screen.setPaletteEmpty(); + s->copyToScreen(0, 0); + screen.setPalette(&p); + } + delete s; - events.waitForPress(); room.setRoomNumber(room.roomNumber()); |