aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game_manager.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-26 10:53:47 -0500
committerPaul Gilbert2016-11-26 15:25:20 -0500
commit63ec47e62f23e310786168cd596667015b2d2523 (patch)
tree0b5aca8f248a3d2c9e81a3411192dbd3ecc9894c /engines/titanic/game_manager.cpp
parent4e06799122c0b763d2a44f0ce46d2ab186bdab5d (diff)
downloadscummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.tar.gz
scummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.tar.bz2
scummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.zip
TITANIC: Add support for 32-bit surfaces
Some of the game videos have alpha levels, which are lost if the surfaces are converted to 16-bit. This adds better support for creating 32-bit video surfaces, so the information won't be lost
Diffstat (limited to 'engines/titanic/game_manager.cpp')
-rw-r--r--engines/titanic/game_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index 9e107c92b9..d554067717 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -39,7 +39,7 @@ CGameManager::CGameManager(CProjectItem *project, CGameView *gameView, Audio::Mi
CTimeEventInfo::_nextId = 0;
_movie = nullptr;
- _movieSurface = CScreenManager::_screenManagerPtr->createSurface(600, 340);
+ _movieSurface = CScreenManager::_screenManagerPtr->createSurface(600, 340, 16);
_project->setGameManager(this);
g_vm->_filesManager->setGameManager(this);
}
@@ -264,7 +264,7 @@ void CGameManager::viewChange() {
delete _movieSurface;
_movie = nullptr;
- _movieSurface = CScreenManager::_screenManagerPtr->createSurface(600, 340);
+ _movieSurface = CScreenManager::_screenManagerPtr->createSurface(600, 340, 16);
_trueTalkManager.clear();
for (CTreeItem *treeItem = _project; treeItem; treeItem = treeItem->scan(_project))