aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Hamm2002-03-20 23:04:35 +0000
committerVincent Hamm2002-03-20 23:04:35 +0000
commitd2d2ae7e7df7aee8fb08f2381a995d6250168869 (patch)
tree726251c6538eefa8d2627d95579a8469f562bc03
parentfbf9c5b318004c8f83464c4158b4325489e00d04 (diff)
downloadscummvm-rg350-d2d2ae7e7df7aee8fb08f2381a995d6250168869.tar.gz
scummvm-rg350-d2d2ae7e7df7aee8fb08f2381a995d6250168869.tar.bz2
scummvm-rg350-d2d2ae7e7df7aee8fb08f2381a995d6250168869.zip
Now insane stream is unpacked in the main video buffer. So there is no more glitch when going back from insane to scumm. Also less memory is now required during insane playback
svn-id: r3794
-rw-r--r--insane.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/insane.cpp b/insane.cpp
index 7b6eca6bde..6b45036084 100644
--- a/insane.cpp
+++ b/insane.cpp
@@ -539,7 +539,7 @@ void SmushPlayer::parseFRME() {
}
void SmushPlayer::init() {
- _renderBitmap = (byte*)malloc(320*200);
+ _renderBitmap = sm->_videoBuffer;
codec37_init(&pcd37, 320, 200);
}
@@ -609,7 +609,7 @@ void SmushPlayer::startVideo(short int arg, byte* videoFile)
sm->setDirtyColors(0, 255);
}
- blitToScreen(sm,_renderBitmap, 0, 0, 320 ,200);
+ blitToScreen(sm,sm->_videoBuffer, 0, 0, 320 ,200);
updateScreen(sm);
waitForTimer(sm,20);