aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-04-24 14:13:09 +0000
committerVincent Hamm2002-04-24 14:13:09 +0000
commitca4262ec0cfad67af104dd8246c9a9a5d5b93c63 (patch)
tree86fe8a4701657d51a08ab90c262c27e19d9bad46 /gfx.cpp
parentd97a8e547ab014ce3c2bfef2b8f89cfe6cce37d2 (diff)
downloadscummvm-rg350-ca4262ec0cfad67af104dd8246c9a9a5d5b93c63.tar.gz
scummvm-rg350-ca4262ec0cfad67af104dd8246c9a9a5d5b93c63.tar.bz2
scummvm-rg350-ca4262ec0cfad67af104dd8246c9a9a5d5b93c63.zip
Fixed transition effects in non V7 games
svn-id: r4073
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/gfx.cpp b/gfx.cpp
index 6cdf734e4e..0a251a5c2f 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -182,10 +182,8 @@ void Gdi::updateDirtyScreen(VirtScreen * vs)
for (i = 0; i < 40; i++) {
bottom = vs->bdirty[i];
- if (_vm->camera._cur.y != _vm->camera._last.y)
-
+ if (_vm->_features & GF_AFTER_V7 && (_vm->camera._cur.y != _vm->camera._last.y))
drawStripToScreen(vs, start, w, 0, vs->height);
-
else
if (bottom) {
top = vs->tdirty[i];
@@ -196,9 +194,10 @@ void Gdi::updateDirtyScreen(VirtScreen * vs)
w += 8;
continue;
}
- // drawStripToScreen(vs, start, w, top, bottom);
-
- drawStripToScreen(vs, start, w, 0, vs->height);
+ if(_vm->_features & GF_AFTER_V7)
+ drawStripToScreen(vs, start, w, 0, vs->height);
+ else
+ drawStripToScreen(vs, start, w, top, bottom);
w = 8;
}
start = i + 1;