From f7c23d28e73af5a5fe290512d933e2f233e7debb Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 8 Aug 2010 01:06:44 +0000 Subject: GOB: Reactivate the Coh-Cott-workaround svn-id: r51918 --- engines/gob/videoplayer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index ae2ef32537..b96e67550c 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -330,10 +330,11 @@ bool VideoPlayer::playFrame(int slot, Properties &properties) { WRITE_VAR(11, video->decoder->getCurFrame()); + uint32 ignoreBorder = 0; if (_woodruffCohCottWorkaround && (properties.startFrame == 31)) { // WORKAROUND: This frame mistakenly masks Coh Cott, making her vanish // To prevent that, we'll never draw that part - // state.left += 50; + ignoreBorder = 50; } if (surface && primary) { @@ -367,12 +368,12 @@ bool VideoPlayer::playFrame(int slot, Properties &properties) { if (video->surface == _vm->_draw->_backSurface) { for (Common::List::const_iterator rect = dirtyRects.begin(); rect != dirtyRects.end(); ++rect) - _vm->_draw->invalidateRect(rect->left, rect->top, rect->right - 1, rect->bottom - 1); + _vm->_draw->invalidateRect(rect->left + ignoreBorder, rect->top, rect->right - 1, rect->bottom - 1); _vm->_draw->blitInvalidated(); } else if (video->surface == _vm->_draw->_frontSurface) { for (Common::List::const_iterator rect = dirtyRects.begin(); rect != dirtyRects.end(); ++rect) - _vm->_video->dirtyRectsAdd(rect->left, rect->top, rect->right - 1, rect->bottom - 1); + _vm->_video->dirtyRectsAdd(rect->left + ignoreBorder, rect->top, rect->right - 1, rect->bottom - 1); } -- cgit v1.2.3