diff options
| author | uruk | 2014-05-15 12:23:27 +0200 | 
|---|---|---|
| committer | uruk | 2014-05-15 12:23:27 +0200 | 
| commit | 365bad47aec09be62da92cd6dae228ebcc896bf8 (patch) | |
| tree | 3342bc8e35444e06ef544c9842a683bac29e7fef | |
| parent | 6d7becb1daf00938b904dd482ce3a7a72e0d5945 (diff) | |
| download | scummvm-rg350-365bad47aec09be62da92cd6dae228ebcc896bf8.tar.gz scummvm-rg350-365bad47aec09be62da92cd6dae228ebcc896bf8.tar.bz2 scummvm-rg350-365bad47aec09be62da92cd6dae228ebcc896bf8.zip | |
CGE2: Move showTitle() from cge2.cpp to cge2_main.cpp.
| -rw-r--r-- | engines/cge2/cge2.cpp | 30 | ||||
| -rw-r--r-- | engines/cge2/cge2_main.cpp | 30 | 
2 files changed, 30 insertions, 30 deletions
| diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index bd93ed22e1..158ac7cce5 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -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 diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 6d59cc88a4..9647eebafd 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -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 | 
