aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/vqa.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-05-18 22:46:34 +0000
committerJohannes Schickel2006-05-18 22:46:34 +0000
commit570b9e2c9dd9bb13ef01fae5e7deb8e038d7067f (patch)
tree49899896302b373b50927ca563a84eaa9922b96f /engines/kyra/vqa.cpp
parentfac7a13cf5c2dd128f5f5b46f3d9c52a534a2322 (diff)
downloadscummvm-rg350-570b9e2c9dd9bb13ef01fae5e7deb8e038d7067f.tar.gz
scummvm-rg350-570b9e2c9dd9bb13ef01fae5e7deb8e038d7067f.tar.bz2
scummvm-rg350-570b9e2c9dd9bb13ef01fae5e7deb8e038d7067f.zip
- load fonts for kyra3
- adds screen dim tables for kyra3 - adds palette / screen backup for the vqa player - small changes in the vqa player to use the Kyra::Screen functions - adds (partially implemented/unimplemented) main menu drawing/handling functions (nothing to see yet) svn-id: r22528
Diffstat (limited to 'engines/kyra/vqa.cpp')
-rw-r--r--engines/kyra/vqa.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/vqa.cpp b/engines/kyra/vqa.cpp
index 23fee5db6e..b7e3e780db 100644
--- a/engines/kyra/vqa.cpp
+++ b/engines/kyra/vqa.cpp
@@ -35,6 +35,7 @@
#include "sound/mixer.h"
#include "kyra/sound.h"
#include "kyra/wsamovie.h"
+#include "kyra/screen.h"
namespace Kyra {
@@ -43,8 +44,7 @@ VQAMovie::VQAMovie(KyraEngine *vm, OSystem *system) : Movie(vm) {
}
VQAMovie::~VQAMovie() {
- if (_opened)
- close();
+ close();
}
void VQAMovie::initBuffers() {
@@ -613,7 +613,7 @@ void VQAMovie::displayFrame(int frameNum) {
_partialCodeBookSize = 0;
}
- _system->copyRectToScreen(_frame, _header.width, _x, _y, _header.width, _header.height);
+ _vm->screen()->copyBlockToPage(_drawPage, _x, _y, _header.width, _header.height, _frame);
}
void VQAMovie::play() {
@@ -712,7 +712,7 @@ void VQAMovie::play() {
_system->delayMillis(10);
}
- _system->updateScreen();
+ _vm->screen()->updateScreen();
}
// TODO: Wait for the sound to finish?