mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CGE2: Move showTitle() from cge2.cpp to cge2_main.cpp.
This commit is contained in:
@@ -131,34 +131,4 @@ Common::Error CGE2Engine::run() {
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
||||
bool CGE2Engine::showTitle(const char *name) {
|
||||
if (_quitFlag)
|
||||
return false;
|
||||
|
||||
_bitmapPalette = _vga->_sysPal;
|
||||
BitmapPtr *LB = new BitmapPtr[2];
|
||||
LB[0] = new Bitmap(this, name);
|
||||
LB[1] = NULL;
|
||||
_bitmapPalette = NULL;
|
||||
|
||||
Sprite D(this, LB, 1);
|
||||
D._flags._kill = true;
|
||||
warning("STUB: Sprite::showTitle() - Flags changed compared to CGE1's Sprite type.");
|
||||
D.gotoxyz(kScrWidth >> 1, -(kPanHeight >> 1));
|
||||
_vga->sunset();
|
||||
|
||||
D.show(2);
|
||||
|
||||
_vga->copyPage(1, 2);
|
||||
_vga->copyPage(0, 1);
|
||||
|
||||
_vga->sunrise(_vga->_sysPal);
|
||||
|
||||
_vga->update();
|
||||
|
||||
warning("STUB: CGE2Engine::showTitle()");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End of namespace CGE2
|
||||
|
||||
@@ -420,4 +420,34 @@ int CGE2Engine::newRandom(int range) {
|
||||
return _randomSource.getRandomNumber(range - 1);
|
||||
}
|
||||
|
||||
bool CGE2Engine::showTitle(const char *name) {
|
||||
if (_quitFlag)
|
||||
return false;
|
||||
|
||||
_bitmapPalette = _vga->_sysPal;
|
||||
BitmapPtr *LB = new BitmapPtr[2];
|
||||
LB[0] = new Bitmap(this, name);
|
||||
LB[1] = NULL;
|
||||
_bitmapPalette = NULL;
|
||||
|
||||
Sprite D(this, LB, 1);
|
||||
D._flags._kill = true;
|
||||
warning("STUB: Sprite::showTitle() - Flags changed compared to CGE1's Sprite type.");
|
||||
D.gotoxyz(kScrWidth >> 1, -(kPanHeight >> 1));
|
||||
_vga->sunset();
|
||||
|
||||
D.show(2);
|
||||
|
||||
_vga->copyPage(1, 2);
|
||||
_vga->copyPage(0, 1);
|
||||
|
||||
_vga->sunrise(_vga->_sysPal);
|
||||
|
||||
_vga->update();
|
||||
|
||||
warning("STUB: CGE2Engine::showTitle()");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End of namespace CGE2
|
||||
|
||||
Reference in New Issue
Block a user