aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-09-28 16:26:37 +0000
committerMax Horn2004-09-28 16:26:37 +0000
commit9ec250ceb7c0638e18609f422da46916cbe79042 (patch)
treeafc6e407b816c270612ddba48b269475bdc42a77
parentcf04ca94ff22e3baa2e5194fd6832fcfab1b456d (diff)
downloadscummvm-rg350-9ec250ceb7c0638e18609f422da46916cbe79042.tar.gz
scummvm-rg350-9ec250ceb7c0638e18609f422da46916cbe79042.tar.bz2
scummvm-rg350-9ec250ceb7c0638e18609f422da46916cbe79042.zip
Adjust transitionEffect to work properly for vertically scrolled rooms
svn-id: r15327
-rw-r--r--scumm/gfx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 103919f4cc..82ab0ad71c 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2671,8 +2671,8 @@ void ScummEngine::transitionEffect(int a) {
if (t == b) {
while (l <= r) {
if (l >= 0 && l < gdi._numStrips && t < bottom) {
- virtscr[0].tdirty[l] = t * 8;
- virtscr[0].bdirty[l] = (b + 1) * 8;
+ virtscr[0].tdirty[l] = _screenTop + t * 8;
+ virtscr[0].bdirty[l] = _screenTop + (b + 1) * 8;
}
l++;
}
@@ -2683,8 +2683,8 @@ void ScummEngine::transitionEffect(int a) {
b = bottom;
if (t < 0)
t = 0;
- virtscr[0].tdirty[l] = t * 8;
- virtscr[0].bdirty[l] = (b + 1) * 8;
+ virtscr[0].tdirty[l] = _screenTop + t * 8;
+ virtscr[0].bdirty[l] = _screenTop + (b + 1) * 8;
}
updateDirtyScreen(kMainVirtScreen);
}