From 2bb8cf25df3f3fb8bb9eebb11d22d812b9310f2f Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 22 Jan 2011 15:06:12 +0000 Subject: 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 --- engines/gob/videoplayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines') 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 { -- cgit v1.2.3