From 1804ae6639a01ca25db7fe2cfc54d6608522dd7d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 31 Dec 2007 05:59:58 +0000 Subject: Added code to handle EGA title screens being immediately shown rather than faded in svn-id: r30098 --- engines/lure/intro.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/lure/intro.cpp b/engines/lure/intro.cpp index 8454e880a9..9d73cc0fe5 100644 --- a/engines/lure/intro.cpp +++ b/engines/lure/intro.cpp @@ -23,6 +23,7 @@ * */ +#include "lure/lure.h" #include "lure/intro.h" #include "lure/animseq.h" #include "lure/events.h" @@ -54,15 +55,20 @@ static const AnimRecord anim_screens[] = { bool Introduction::showScreen(uint16 screenId, uint16 paletteId, uint16 delaySize) { Events &events = Events::getReference(); + bool isEGA = LureEngine::getReference().isEGA(); _screen.screen().loadScreen(screenId); _screen.update(); Palette p(paletteId); - _screen.paletteFadeIn(&p); + + if (isEGA) _screen.setPalette(&p); + else _screen.paletteFadeIn(&p); bool result = interruptableDelay(delaySize); if (events.quitFlag) return true; - _screen.paletteFadeOut(); + if (!isEGA) + _screen.paletteFadeOut(); + return result; } -- cgit v1.2.3