aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2009-08-18 19:42:13 +0000
committerBenjamin Haisch2009-08-18 19:42:13 +0000
commit0762bb7cf6d81632a0fd9621104546fa9ae3da18 (patch)
tree222d911869bd8e292f0174532b5718ad1900b4e1 /engines/made/screen.cpp
parenta35056b55531edcd384c3fa0dafc9a4ee6bfb6ee (diff)
downloadscummvm-rg350-0762bb7cf6d81632a0fd9621104546fa9ae3da18.tar.gz
scummvm-rg350-0762bb7cf6d81632a0fd9621104546fa9ae3da18.tar.bz2
scummvm-rg350-0762bb7cf6d81632a0fd9621104546fa9ae3da18.zip
- PMV player: Use frame count from PVM file and fix incorrect "invalid chunk type" warning
- Fix sprite drawing glitch with vertically flipped sprites (bug #2825925) svn-id: r43521
Diffstat (limited to 'engines/made/screen.cpp')
-rw-r--r--engines/made/screen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index d55b663296..7471743ba4 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -188,7 +188,7 @@ void Screen::drawSurface(Graphics::Surface *sourceSurface, int x, int y, int16 f
if (flipX) {
linePtrAdd = -1;
- sourceAdd = sourceSurface->w;
+ sourceAdd = sourceSurface->w - 1;
} else {
linePtrAdd = 1;
sourceAdd = 0;
@@ -210,6 +210,7 @@ void Screen::drawSurface(Graphics::Surface *sourceSurface, int x, int y, int16 f
}
linePtr += linePtrAdd;
}
+
source += sourcePitch;
dest += clipInfo.destSurface->pitch;
if (_vm->getGameID() != GID_RTZ)