aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2015-07-17 00:35:30 -0400
committerMatthew Hoops2015-07-17 20:05:04 -0400
commit9665efa39a4df000eb695329a9b81c1657f4dc10 (patch)
tree23d4e17554fa05372b07b5a4715d00dc3f779754 /engines/mohawk/livingbooks.cpp
parent7e6c8be7db2449c1f793b6fb01af5613282e7f27 (diff)
downloadscummvm-rg350-9665efa39a4df000eb695329a9b81c1657f4dc10.tar.gz
scummvm-rg350-9665efa39a4df000eb695329a9b81c1657f4dc10.tar.bz2
scummvm-rg350-9665efa39a4df000eb695329a9b81c1657f4dc10.zip
MOHAWK: Move further VideoManager functionality to VideoEntry
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r--engines/mohawk/livingbooks.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 6874f2420e..30b9d7c0e5 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -3802,8 +3802,11 @@ bool LBMovieItem::togglePlaying(bool playing, bool restart) {
if (playing) {
if ((_loaded && _enabled && _globalEnabled) || _phase == kLBPhaseNone) {
debug("toggled video for phase %d", _phase);
- _vm->_video->playMovie(_resourceId, _rect.left, _rect.top);
+ VideoHandle handle = _vm->_video->playMovie(_resourceId);
+ if (!handle)
+ error("Failed to open tMOV %d", _resourceId);
+ handle->moveTo(_rect.left, _rect.top);
return true;
}
}