From 735ea1eaaae1036771f858fa5656f2ce71ba8e9d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 Jan 2008 10:53:27 +0000 Subject: Fix to show credits screen correctly in EGA mode svn-id: r30232 --- engines/lure/game.cpp | 17 ++++++++++++----- 1 file 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()); -- cgit v1.2.3