diff options
author | Paul Gilbert | 2016-03-19 18:19:45 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-19 18:19:45 -0400 |
commit | 4704d72d6af60db97959c3d170a2ea524a0f0f1f (patch) | |
tree | 2b56e66d124be79d02743777f96914edf02bba75 /engines/titanic/screen_manager.cpp | |
parent | d86941f8c6b497f2d3d8409c2628af88bc600dae (diff) | |
download | scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.tar.gz scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.tar.bz2 scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.zip |
TITANIC: Implementing view item message handling
Diffstat (limited to 'engines/titanic/screen_manager.cpp')
-rw-r--r-- | engines/titanic/screen_manager.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/titanic/screen_manager.cpp b/engines/titanic/screen_manager.cpp index 9c88dc6de9..0c3ab6f556 100644 --- a/engines/titanic/screen_manager.cpp +++ b/engines/titanic/screen_manager.cpp @@ -110,7 +110,16 @@ void OSScreenManager::setMode(int width, int height, int bpp, uint numBackSurfac void OSScreenManager::proc5() {} void OSScreenManager::proc6() {} void OSScreenManager::proc7() {} -void OSScreenManager::proc8() {} + +CVideoSurface *OSScreenManager::getSurface(int surfaceNum) const { + if (surfaceNum == -1) + return _frontRenderSurface; + else if (surfaceNum >= 0 && surfaceNum < (int)_backSurfaces.size()) + return _backSurfaces[surfaceNum]; + else + return nullptr; +} + void OSScreenManager::proc9() {} void OSScreenManager::proc10() {} void OSScreenManager::proc11() {} |