diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/render_manager.cpp | 12 | ||||
-rw-r--r-- | engines/zvision/render_manager.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index 837e3880c7..e394baf504 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -335,4 +335,16 @@ void RenderManager::moveBackground(int offset) { } } +uint32 RenderManager::getCurrentBackgroundOffset() { + RenderTable::RenderState state = _renderTable.getRenderState(); + + if (state == RenderTable::PANORAMA) { + return _backgroundOffset.x; + } else if (state == RenderTable::TILT) { + return _backgroundOffset.y; + } else { + return 0; + } +} + } // End of namespace ZVision diff --git a/engines/zvision/render_manager.h b/engines/zvision/render_manager.h index 41dedab792..1dcbf76d8c 100644 --- a/engines/zvision/render_manager.h +++ b/engines/zvision/render_manager.h @@ -166,6 +166,7 @@ public: const Common::Point screenSpaceToImageSpace(const Common::Point &point); RenderTable *getRenderTable(); + uint32 getCurrentBackgroundOffset(); private: /** |