From a8e6fa3346a9cf5107629397545cb04e44b831c6 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 22 Jan 2011 15:39:52 +0000 Subject: GOB: Don't blit dirty rectangles while playing a live video This fixes the inventory list flickering in live videos :) svn-id: r55430 --- engines/gob/videoplayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/gob/videoplayer.cpp') diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 932a6394a4..0413dff245 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -450,7 +450,8 @@ bool VideoPlayer::playFrame(int slot, Properties &properties) { for (Common::List::const_iterator rect = dirtyRects.begin(); rect != dirtyRects.end(); ++rect) _vm->_draw->invalidateRect(rect->left + ignoreBorder, rect->top, rect->right - 1, rect->bottom - 1); - _vm->_draw->blitInvalidated(); + if (!video->live) + _vm->_draw->blitInvalidated(); } else if (video->surface == _vm->_draw->_frontSurface) { for (Common::List::const_iterator rect = dirtyRects.begin(); rect != dirtyRects.end(); ++rect) -- cgit v1.2.3