aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-17 22:50:15 +0000
committerJohannes Schickel2008-04-17 22:50:15 +0000
commit4b7e5aeaf72e77834d4f8beec9e139c12ed129bc (patch)
treec298854e13ef68c0fb8d35c44401c609e17db696 /engines/kyra/screen.cpp
parent7666531dacbe104b9f42f924411388adca147ecb (diff)
downloadscummvm-rg350-4b7e5aeaf72e77834d4f8beec9e139c12ed129bc.tar.gz
scummvm-rg350-4b7e5aeaf72e77834d4f8beec9e139c12ed129bc.tar.bz2
scummvm-rg350-4b7e5aeaf72e77834d4f8beec9e139c12ed129bc.zip
Little fix in drawShape.
svn-id: r31555
Diffstat (limited to 'engines/kyra/screen.cpp')
-rw-r--r--engines/kyra/screen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index b601864aec..1857c2cdb7 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -1381,8 +1381,6 @@ void Screen::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y, int
uint8 *d = dst;
while (shapeHeight--) {
- ++curY;
-
bool normalPlot = true;
if (flags & 0x800)
normalPlot = (curY > _maskMinY && curY < _maskMaxY);
@@ -1415,6 +1413,7 @@ void Screen::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y, int
}
dst += dsPitch;
d = dst;
+ ++curY;
scaleCounterV -= 256;
} while (scaleCounterV & 0xff00);
}