Fixing the update coordinates for videos with _bytesPerPixel > 1

svn-id: r35395
This commit is contained in:
Sven Hesse 2008-12-16 19:55:51 +00:00
parent d4b6b9187d
commit 94c14c7c78

View File

@ -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);