diff options
author | Bastien Bouclet | 2017-07-09 15:01:52 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-07-22 20:38:56 +0200 |
commit | c5496e32068a24c53b6a9f0e633d4e0321c3c831 (patch) | |
tree | 2ea470e44e8f3711300361b131d03b100b155beb /engines/mohawk/console.cpp | |
parent | 0b9bfb3d3c71df7c011754a2f7b98e32e023dc3e (diff) | |
download | scummvm-rg350-c5496e32068a24c53b6a9f0e633d4e0321c3c831.tar.gz scummvm-rg350-c5496e32068a24c53b6a9f0e633d4e0321c3c831.tar.bz2 scummvm-rg350-c5496e32068a24c53b6a9f0e633d4e0321c3c831.zip |
MOHAWK: Get rid of VideoHandle
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r-- | engines/mohawk/console.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp index 91be370672..cfabbd304d 100644 --- a/engines/mohawk/console.cpp +++ b/engines/mohawk/console.cpp @@ -272,20 +272,20 @@ bool MystConsole::Cmd_PlayMovie(int argc, const char **argv) { fileName = argv[1]; } - VideoHandle handle = _vm->_video->playMovie(fileName); - if (!handle) { + VideoEntryPtr video = _vm->_video->playMovie(fileName); + if (!video) { debugPrintf("Failed to open movie '%s'\n", fileName.c_str()); return true; } if (argc == 4) { - handle->setX(atoi(argv[2])); - handle->setY(atoi(argv[3])); + video->setX(atoi(argv[2])); + video->setY(atoi(argv[3])); } else if (argc > 4) { - handle->setX(atoi(argv[3])); - handle->setY(atoi(argv[4])); + video->setX(atoi(argv[3])); + video->setY(atoi(argv[4])); } else { - handle->center(); + video->center(); } return false; |