aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-03-17 12:32:46 +0000
committerPaweł Kołodziejski2003-03-17 12:32:46 +0000
commitd434b86ddb0e8a72489366a513b669179b61d316 (patch)
treea46a04ae67a4cccc0048f63fb71c3208f4a9b8be /scumm/script_v8.cpp
parent06ef80fa6170bec33f9ac117400fa86f965c4aa7 (diff)
downloadscummvm-rg350-d434b86ddb0e8a72489366a513b669179b61d316.tar.gz
scummvm-rg350-d434b86ddb0e8a72489366a513b669179b61d316.tar.bz2
scummvm-rg350-d434b86ddb0e8a72489366a513b669179b61d316.zip
split waitForTimer func, update for smush,
btw, switching scalers while playing smush movies doesn't work or at least SDL backend, it hang on SDL_SetVideo func svn-id: r6818
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index 0a17e29b1c..fb7a004681 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -27,8 +27,7 @@
#include "sound.h"
#include "verbs.h"
-#include "smush/player.h"
-#include "smush/scumm_renderer.h"
+#include "smush/smush_player.h"
#include <time.h>
@@ -1334,16 +1333,9 @@ void Scumm_v8::o8_startVideo() {
warning("o8_startVideo(%s/%s)", getGameDataPath(), (char*)_scriptPointer);
- ScummRenderer * sr = new ScummRenderer(this, 83333);
- SmushPlayer * sp = new SmushPlayer(sr);
-
- if (_noSubtitles)
- sp->hide("subtitles");
-
+ SmushPlayer *sp = new SmushPlayer(this, 83333, !_noSubtitles);
sp->play((char*)_scriptPointer, getGameDataPath());
-
delete sp;
- delete sr;
_scriptPointer += len + 1;
}