aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-22 15:39:52 +0000
committerSven Hesse2011-01-22 15:39:52 +0000
commita8e6fa3346a9cf5107629397545cb04e44b831c6 (patch)
treee9150a28d4c172497170ebeed66aa55b38295711 /engines/gob/videoplayer.cpp
parent2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f (diff)
downloadscummvm-rg350-a8e6fa3346a9cf5107629397545cb04e44b831c6.tar.gz
scummvm-rg350-a8e6fa3346a9cf5107629397545cb04e44b831c6.tar.bz2
scummvm-rg350-a8e6fa3346a9cf5107629397545cb04e44b831c6.zip
GOB: Don't blit dirty rectangles while playing a live video
This fixes the inventory list flickering in live videos :) svn-id: r55430
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp3
1 files changed, 2 insertions, 1 deletions
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<Common::Rect>::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<Common::Rect>::const_iterator rect = dirtyRects.begin(); rect != dirtyRects.end(); ++rect)