aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2011-01-22 15:06:12 +0000
committerSven Hesse2011-01-22 15:06:12 +0000
commit2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f (patch)
tree2bad9c2cea047ee8dabf7a61634539a665175233 /engines/gob
parent7dd28c024aa68f76be48de23b66f27dc6cec90cc (diff)
downloadscummvm-rg350-2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f.tar.gz
scummvm-rg350-2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f.tar.bz2
scummvm-rg350-2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f.zip
GOB: Force live videos onto the backSurface
Fixes some inventory list uglyness in live videos. It still flickers when mousing over it though, and keeps popping when mousing over the register during the hotel scene svn-id: r55429
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/videoplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index c0e450c9a2..932a6394a4 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -87,6 +87,9 @@ void VideoPlayer::evaluateFlags(Properties &properties) {
} else {
properties.sprite = Draw::kBackSurface;
}
+
+ if (properties.noBlock && (properties.sprite == Draw::kFrontSurface))
+ properties.sprite = Draw::kBackSurface;
}
int VideoPlayer::openVideo(bool primary, const Common::String &file, Properties &properties) {
@@ -314,8 +317,6 @@ void VideoPlayer::updateLive(bool force) {
if (!_liveProperties.loop) {
WRITE_VAR_OFFSET(212, (uint32)-1);
- if (video->surface == _vm->_draw->_frontSurface)
- _vm->_draw->forceBlit(true);
_vm->_vidPlayer->closeVideo();
return;
} else {