From b6017da9e24cf05db01217c83e24e0a313b36233 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 19 Aug 2007 19:07:31 +0000 Subject: 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 --- engines/gob/videoplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/videoplayer.cpp') 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; -- cgit v1.2.3