aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2008-12-16 19:55:51 +0000
committerSven Hesse2008-12-16 19:55:51 +0000
commit94c14c7c78a911d0f58949937eaf279fdda2a5bc (patch)
treec3c17cc6a635b4879f7d4e48a223b03adead06f0 /engines/gob
parentd4b6b9187db09acabb347f368fb8f26d648e32cc (diff)
downloadscummvm-rg350-94c14c7c78a911d0f58949937eaf279fdda2a5bc.tar.gz
scummvm-rg350-94c14c7c78a911d0f58949937eaf279fdda2a5bc.tar.bz2
scummvm-rg350-94c14c7c78a911d0f58949937eaf279fdda2a5bc.zip
Fixing the update coordinates for videos with _bytesPerPixel > 1
svn-id: r35395
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/coktelvideo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp
index 50425d7679..c86ac48459 100644
--- a/engines/gob/coktelvideo.cpp
+++ b/engines/gob/coktelvideo.cpp
@@ -1281,6 +1281,10 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
int16 l = part.left, t = part.top, r = part.right, b = part.bottom;
if (renderFrame(l, t, r, b)) {
+ if (!_externalCodec) {
+ l /= _bytesPerPixel;
+ r /= _bytesPerPixel;
+ }
// Rendering succeeded, merging areas
state.left = MIN(state.left, l);
state.top = MIN(state.top, t);