aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-08-19 19:07:31 +0000
committerTorbjörn Andersson2007-08-19 19:07:31 +0000
commitb6017da9e24cf05db01217c83e24e0a313b36233 (patch)
tree454d297f3869d21c4a46ac1189aab2dc0ee9442d /engines/gob/videoplayer.cpp
parentdd215f3e9fa3fecc32d84fe499123745734de00b (diff)
downloadscummvm-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
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp2
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;