diff options
author | Torbjörn Andersson | 2007-08-19 19:07:31 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-08-19 19:07:31 +0000 |
commit | b6017da9e24cf05db01217c83e24e0a313b36233 (patch) | |
tree | 454d297f3869d21c4a46ac1189aab2dc0ee9442d | |
parent | dd215f3e9fa3fecc32d84fe499123745734de00b (diff) | |
download | scummvm-rg350-b6017da9e24cf05db01217c83e24e0a313b36233.tar.gz scummvm-rg350-b6017da9e24cf05db01217c83e24e0a313b36233.tar.bz2 scummvm-rg350-b6017da9e24cf05db01217c83e24e0a313b36233.zip |
Always update the video's position, even if it's already been loaded, because
it won't necessarily be played at the same position every time. For instance,
in Lost in Time you can look at the captain's chair several times. The position
of the video seems to depend on exactly where on the screen you clicked.
svn-id: r28668
-rw-r--r-- | engines/gob/videoplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 905c309023..5d31c31b7b 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -139,7 +139,6 @@ bool VideoPlayer::openVideo(const char *video, int16 x, int16 y, int16 flags, Ty } strcpy(_curFile, fileName); - _video->setXY(x, y); if (!(flags & kFlagNoVideo)) { _backSurf = ((flags & kFlagFrontSurface) == 0); @@ -154,6 +153,7 @@ bool VideoPlayer::openVideo(const char *video, int16 x, int16 y, int16 flags, Ty if (!_video) return false; + _video->setXY(x, y); WRITE_VAR(7, _video->getFramesCount()); return true; |