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
This commit is contained in:
Sven Hesse 2011-01-22 15:06:12 +00:00
parent 7dd28c024a
commit 2bb8cf25df

View File

@ -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 {