diff options
author | Nicola Mettifogo | 2009-03-23 00:56:05 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-03-23 00:56:05 +0000 |
commit | 71f42a954988bfe490d9c76e16edfa06873fe1b8 (patch) | |
tree | e641a159bd307189d96dc6afca2efbec56f9316e /engines/parallaction/parallaction.cpp | |
parent | e3f9acc3e6c66ab42e6e992536c933069771c99e (diff) | |
download | scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.tar.gz scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.tar.bz2 scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.zip |
Fully implemented scrolling.
svn-id: r39622
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 23da65cee7..7b6f3b464e 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -160,32 +160,6 @@ void Parallaction::updateView() { return; } - #define SCROLL_BAND_WIDTH 120 - - int scrollX = 0; - if (canScroll()) { - scrollX = _gfx->getScrollPos(); - - if (_char._ani->gfxobj) { - Common::Point foot; - _char._ani->getFoot(foot); - - foot.x -= scrollX; - //foot.y -= ... - - int min = SCROLL_BAND_WIDTH; - int max = _screenWidth - SCROLL_BAND_WIDTH; - - if (foot.x < min) { - scrollX -= (min - foot.x); - } else - if (foot.x > max) { - scrollX += (foot.x - max); - } - } - } - _gfx->setScrollPos(scrollX); - _gfx->animatePalette(); _gfx->updateScreen(); _system->delayMillis(30); |