diff options
author | Filippos Karapetis | 2015-07-21 22:16:55 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | cb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a (patch) | |
tree | 3f307aad7582ff903f0cbd3313403d237b107455 /engines | |
parent | c8b2745f7a960e1afc421782ac81fcddf81f6e60 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/lab/graphics.cpp | 22 |
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); |