aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-02-02 10:18:31 +0000
committerNicola Mettifogo2008-02-02 10:18:31 +0000
commit5306701eab63b4b308225951d8f286ecf93ab1c0 (patch)
tree17c46015c9581fbd93d1c6cd075a2da4469d315c /engines/parallaction/parallaction_br.cpp
parent015ad5e4696243a96be383fce5c04350a71cb91f (diff)
downloadscummvm-rg350-5306701eab63b4b308225951d8f286ecf93ab1c0.tar.gz
scummvm-rg350-5306701eab63b4b308225951d8f286ecf93ab1c0.tar.bz2
scummvm-rg350-5306701eab63b4b308225951d8f286ecf93ab1c0.zip
Allowed BackgroundInfo to display bitmaps smaller than the screen and other small tweaks to re-enable splash screens in BRA.
svn-id: r30732
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r--engines/parallaction/parallaction_br.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp
index 0b1d0006e8..d1afbc2740 100644
--- a/engines/parallaction/parallaction_br.cpp
+++ b/engines/parallaction/parallaction_br.cpp
@@ -144,27 +144,23 @@ int Parallaction_br::go() {
}
void Parallaction_br::splash(const char *name) {
-#if 0
- BackgroundInfo info;
- _gfx->clearScreen(Gfx::kBitFront);
-
- _disk->loadSlide(info, name);
- _gfx->setPalette(info.palette);
- _gfx->flatBlitCnv(&info.bg, (640 - info.width) >> 1, (400 - info.height) >> 1, Gfx::kBitFront);
+ _gfx->clearScreen();
+ _gfx->setBackground(kBackgroundSlide, name, 0, 0);
+ _gfx->_backgroundInfo.x = (_screenWidth - _gfx->_backgroundInfo.width) >> 1;
+ _gfx->_backgroundInfo.y = (_screenHeight - _gfx->_backgroundInfo.height) >> 1;
_gfx->updateScreen();
_system->delayMillis(600);
- Palette pal;
+ Palette blackPal;
+ Palette pal(_gfx->_backgroundInfo.palette);
for (uint i = 0; i < 64; i++) {
- info.palette.fadeTo(pal, 1);
- _gfx->setPalette(info.palette);
+ pal.fadeTo(blackPal, 1);
+ _gfx->setPalette(pal);
_gfx->updateScreen();
_system->delayMillis(20);
}
- info.bg.free();
-#endif
- return;
+
}
#define MENUITEMS_X 250