diff options
Diffstat (limited to 'engines/composer/composer.cpp')
| -rw-r--r-- | engines/composer/composer.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index 555b703da9..5db778dfda 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -102,13 +102,14 @@ Common::Error ComposerEngine::run() {  	if (_bookIni.hasKey("Height", "Common"))  		height = atoi(getStringFromConfig("Common", "Height").c_str());  	initGraphics(width, height, true); -	_surface.create(width, height, Graphics::PixelFormat::createFormatCLUT8()); +	_screen.create(width, height, Graphics::PixelFormat::createFormatCLUT8());  	_needsUpdate = true;  	Graphics::Cursor *cursor = Graphics::makeDefaultWinCursor();  	CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(),  		cursor->getHotspotY(), cursor->getKeyColor());  	CursorMan.replaceCursorPalette(cursor->getPalette(), cursor->getPaletteStartIndex(), cursor->getPaletteCount()); +	delete cursor;  	loadLibrary(0); @@ -213,6 +214,8 @@ Common::Error ComposerEngine::run() {  		_system->delayMillis(20);  	} +	_screen.free(); +  	return Common::kNoError;  } | 
