aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2015-07-21 22:16:55 +0300
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commitcb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a (patch)
tree3f307aad7582ff903f0cbd3313403d237b107455 /engines/lab
parentc8b2745f7a960e1afc421782ac81fcddf81f6e60 (diff)
downloadscummvm-rg350-cb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a.tar.gz
scummvm-rg350-cb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a.tar.bz2
scummvm-rg350-cb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a.zip
LAB: Replace more uses of checkMusic(). Some cleanup
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/graphics.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/lab/graphics.cpp b/engines/lab/graphics.cpp
index 7f949d6bdf..e2a221f7f4 100644
--- a/engines/lab/graphics.cpp
+++ b/engines/lab/graphics.cpp
@@ -44,8 +44,8 @@ BitMap bit1, bit2, *DispBitMap = &bit1, *DrawBitMap = &bit1;
extern BitMap RawDiffBM;
-extern char diffcmap[256 * 3], lastcmap[256 * 3];
-extern bool IsBM, NoFlip, nopalchange;
+extern char diffcmap[256 * 3];
+extern bool IsBM, nopalchange;
extern bool DoBlack, stopsound;
extern bool IsHiRes;
@@ -435,9 +435,9 @@ static void doScrollBlack() {
Im.Width = width;
Im.Height = height;
Im.ImageData = mem;
- g_music->fillUpMusic(true);
+ g_music->updateMusic();
readScreenImage(&Im, 0, 0);
- g_music->fillUpMusic(true);
+ g_music->updateMusic();
BaseAddr = (uint32 *) getVGABaseAddr();
@@ -445,7 +445,7 @@ static void doScrollBlack() {
nheight = height;
while (nheight) {
- g_music->checkMusic();
+ g_music->updateMusic();
if (!IsHiRes)
waitTOF();
@@ -547,7 +547,7 @@ static void doScrollWipe(char *filename) {
height = VGAScaleY(149) + SVGACord(2);
while (g_music->isSoundEffectActive()) {
- g_music->checkMusic();
+ g_music->updateMusic();
waitTOF();
}
@@ -557,12 +557,12 @@ static void doScrollWipe(char *filename) {
IsBM = false;
mem = RawDiffBM.Planes[0];
- g_music->fillUpMusic(true);
+ g_music->updateMusic();
by = VGAScaleX(3);
nheight = height;
while (onrow < headerdata.y) {
- g_music->checkMusic();
+ g_music->updateMusic();
if ((by > nheight) && nheight)
by = nheight;
@@ -619,11 +619,11 @@ static void doScrollBounce() {
int height = VGAScaleY(149) + SVGACord(2);
byte *mem = RawDiffBM.Planes[0];
- g_music->fillUpMusic(true);
+ g_music->updateMusic();
int startline = headerdata.y - height - 1;
for (int counter = 0; counter < 5; counter++) {
- g_music->checkMusic();
+ g_music->updateMusic();
startline -= newby[counter];
copyPage(width, height, 0, startline, mem);
@@ -632,7 +632,7 @@ static void doScrollBounce() {
}
for (int counter = 8; counter > 0; counter--) {
- g_music->checkMusic();
+ g_music->updateMusic();
startline += newby1[counter - 1];
copyPage(width, height, 0, startline, mem);