diff options
author | Nicola Mettifogo | 2007-08-11 14:18:00 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-11 14:18:00 +0000 |
commit | 1d0541a1db315ed3837621f0d9d287790114bb7d (patch) | |
tree | 2ccc61e8864d6254ef69f3f08444234a2ae3d343 /engines/parallaction/parallaction_br.cpp | |
parent | 0c7d53a2a4792b5385f19de749b7deb934f3346c (diff) | |
download | scummvm-rg350-1d0541a1db315ed3837621f0d9d287790114bb7d.tar.gz scummvm-rg350-1d0541a1db315ed3837621f0d9d287790114bb7d.tar.bz2 scummvm-rg350-1d0541a1db315ed3837621f0d9d287790114bb7d.zip |
Since splash screen graphics will be called slides (like in Nippon Safes), loading code has been moved to loadSlide. Related code in engine has been refactored as well.
svn-id: r28527
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index fbf424c41e..0455b50381 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -72,39 +72,38 @@ int Parallaction_br::go() { return 0; } -void Parallaction_br::initGame() { +void Parallaction_br::splash(const char *name) { + + BackgroundInfo *info; + + _gfx->clearScreen(Gfx::kBitFront); - Graphics::Surface* surf = _disk->loadStatic("dyna"); - _gfx->setPalette(_gfx->_palette); - _gfx->flatBlitCnv(surf, (640 - surf->w) >> 1, (400 - surf->h) >> 1, Gfx::kBitFront); + info = _disk->loadSlide(name); + _gfx->setPalette(info->palette); + _gfx->flatBlitCnv(&info->bg, (640 - info->width) >> 1, (400 - info->height) >> 1, Gfx::kBitFront); _gfx->updateScreen(); _system->delayMillis(600); Palette pal; for (uint i = 0; i < 64; i++) { - _gfx->_palette.fadeTo(pal, 1); - _gfx->setPalette(_gfx->_palette); + info->palette.fadeTo(pal, 1); + _gfx->setPalette(info->palette); _gfx->updateScreen(); - _system->delayMillis(30); + _system->delayMillis(20); } - surf->free(); - _gfx->clearScreen(Gfx::kBitFront); + info->bg.free(); - surf = _disk->loadStatic("core"); - _gfx->setPalette(_gfx->_palette); - _gfx->flatBlitCnv(surf, (640 - surf->w) >> 1, (400 - surf->h) >> 1, Gfx::kBitFront); - _gfx->updateScreen(); - _system->delayMillis(2000); + delete info; - for (uint i = 0; i < 64; i++) { - _gfx->_palette.fadeTo(pal, 1); - _gfx->setPalette(_gfx->_palette); - _gfx->updateScreen(); - _system->delayMillis(30); - } - surf->free(); - _gfx->clearScreen(Gfx::kBitFront); + return; +} + +void Parallaction_br::initGame() { + + splash("dyna"); + splash("core"); + return; } } // namespace Parallaction |