aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-09 23:35:51 +0100
committerEugene Sandulenko2016-12-10 00:05:19 +0100
commitb03b7902ebf265d18410266da3426fe42c67c065 (patch)
tree0aa6b4f3b6043a109e7c572231cf48b17bd636bf /engines/fullpipe/scenes.cpp
parent774d55b7b6a52c30cdadee57441597a6542db70e (diff)
downloadscummvm-rg350-b03b7902ebf265d18410266da3426fe42c67c065.tar.gz
scummvm-rg350-b03b7902ebf265d18410266da3426fe42c67c065.tar.bz2
scummvm-rg350-b03b7902ebf265d18410266da3426fe42c67c065.zip
FULLPIPE: Implement wide scene autoscrolling
Diffstat (limited to 'engines/fullpipe/scenes.cpp')
-rw-r--r--engines/fullpipe/scenes.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 4b50763e8c..15f6b0bdbc 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -519,6 +519,17 @@ int FullpipeEngine::getSceneFromTag(int tag) {
return 1;
}
+void FullpipeEngine::sceneAutoScrolling() {
+ if (_aniMan2 == _aniMan && _currentScene && !_currentScene->_messageQueueId) {
+ if (800 - _mouseScreenPos.x >= 47 || _sceneRect.right >= _sceneWidth - 1 || _aniMan->_ox <= _sceneRect.left + 230) {
+ if (_mouseScreenPos.x < 47 && _sceneRect.left > 0 && _aniMan->_ox < _sceneRect.right - 230)
+ _currentScene->_x = -10;
+ } else {
+ _currentScene->_x = 10;
+ }
+ }
+}
+
bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) {
GameVar *sceneVar;
Common::Point sceneDim;