From 94c14c7c78a911d0f58949937eaf279fdda2a5bc Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 16 Dec 2008 19:55:51 +0000 Subject: Fixing the update coordinates for videos with _bytesPerPixel > 1 svn-id: r35395 --- engines/gob/coktelvideo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/gob/coktelvideo.cpp') 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); -- cgit v1.2.3