aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/vqa.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-21 18:16:34 +0000
committerTorbjörn Andersson2006-05-21 18:16:34 +0000
commit9fad465cf6c22dfe17f32057c627bfb3e5f0a258 (patch)
treec50c28c672dc754da4d4fc5a889349ef4a7cc36a /engines/kyra/vqa.cpp
parentb2d8f804cd40df6d3e3e50d7640bd8f1433be9ba (diff)
downloadscummvm-rg350-9fad465cf6c22dfe17f32057c627bfb3e5f0a258.tar.gz
scummvm-rg350-9fad465cf6c22dfe17f32057c627bfb3e5f0a258.tar.bz2
scummvm-rg350-9fad465cf6c22dfe17f32057c627bfb3e5f0a258.zip
At LordHoto's request...
* The VQA move player isn't as similar to the WSA movie player as we first envisioned, so the VQA player no longer inherits from Movie. It does retain a fairly similar calling interface, though. * Use the Kyra engine's idea of screen dimensions, rather than the backend's. svn-id: r22561
Diffstat (limited to 'engines/kyra/vqa.cpp')
-rw-r--r--engines/kyra/vqa.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/kyra/vqa.cpp b/engines/kyra/vqa.cpp
index 07a8354301..b209f5ea6d 100644
--- a/engines/kyra/vqa.cpp
+++ b/engines/kyra/vqa.cpp
@@ -34,13 +34,16 @@
#include "sound/audiostream.h"
#include "sound/mixer.h"
#include "kyra/sound.h"
-#include "kyra/wsamovie.h"
#include "kyra/screen.h"
+#include "kyra/vqa.h"
namespace Kyra {
-VQAMovie::VQAMovie(KyraEngine *vm, OSystem *system) : Movie(vm) {
+VQAMovie::VQAMovie(KyraEngine *vm, OSystem *system) {
_system = system;
+ _vm = vm;
+ _opened = false;
+ _x = _y = _drawPage = -1;
}
VQAMovie::~VQAMovie() {
@@ -246,7 +249,7 @@ void VQAMovie::decodeSND1(byte *inbuf, uint32 insize, byte *outbuf, uint32 outsi
}
}
-void VQAMovie::open(const char *filename, int dummy1, uint8 *dummy2) {
+void VQAMovie::open(const char *filename) {
debugC(9, kDebugLevelMovie, "VQAMovie::open('%s')", filename);
close();
@@ -312,8 +315,8 @@ void VQAMovie::open(const char *filename, int dummy1, uint8 *dummy2) {
}
}
- setX((_system->getWidth() - _header.width) / 2);
- setY((_system->getHeight() - _header.height) / 2);
+ setX((Screen::SCREEN_W - _header.width) / 2);
+ setY((Screen::SCREEN_H - _header.height) / 2);
// HACK: I've only seen 8-bit mono audio in Kyra 3