diff options
author | Filippos Karapetis | 2015-12-03 14:30:08 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:48 +0100 |
commit | f7fe91c8d23af3628f5df3c553ac4a0f0538d6c2 (patch) | |
tree | c1a4ce7cbe2d11d2227342cbf7e46142829dc9d7 /engines/lab | |
parent | 1913a61f30f4200c044f11268ab6fca40f0af510 (diff) | |
download | scummvm-rg350-f7fe91c8d23af3628f5df3c553ac4a0f0538d6c2.tar.gz scummvm-rg350-f7fe91c8d23af3628f5df3c553ac4a0f0538d6c2.tar.bz2 scummvm-rg350-f7fe91c8d23af3628f5df3c553ac4a0f0538d6c2.zip |
LAB: Function reordering
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/graphics.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/engines/lab/graphics.cpp b/engines/lab/graphics.cpp index 9e65fa9424..520828a8f4 100644 --- a/engines/lab/graphics.cpp +++ b/engines/lab/graphics.cpp @@ -141,23 +141,6 @@ bool readPict(const char *filename, bool playOnce) { } /*****************************************************************************/ -/* Reads in a music file. Ignores any graphics. */ -/*****************************************************************************/ -bool readMusic(const char *filename, bool waitTillFinished) { - Common::File *file = g_lab->_resource->openDataFile(filename, MKTAG('D', 'I', 'F', 'F')); - g_lab->_music->updateMusic(); - if (!g_lab->_music->_doNotFilestopSoundEffect) - g_lab->_music->stopSoundEffect(); - if (!file) - return false; - - g_lab->_anim->_doBlack = false; - g_lab->_anim->readSound(waitTillFinished, file); - - return true; -} - -/*****************************************************************************/ /* Reads in a picture into buffer memory. */ /*****************************************************************************/ byte *readPictToMem(const char *filename, uint16 x, uint16 y) { @@ -174,8 +157,8 @@ byte *readPictToMem(const char *filename, uint16 x, uint16 y) { return NULL; DispBitMap->_bytesPerRow = x; - DispBitMap->_rows = y; - DispBitMap->_flags = BITMAPF_NONE; + DispBitMap->_rows = y; + DispBitMap->_flags = BITMAPF_NONE; DispBitMap->_planes[0] = curMem; DispBitMap->_planes[1] = DispBitMap->_planes[0] + 0x10000; DispBitMap->_planes[2] = DispBitMap->_planes[1] + 0x10000; @@ -187,6 +170,23 @@ byte *readPictToMem(const char *filename, uint16 x, uint16 y) { return mem; } +/*****************************************************************************/ +/* Reads in a music file. Ignores any graphics. */ +/*****************************************************************************/ +bool readMusic(const char *filename, bool waitTillFinished) { + Common::File *file = g_lab->_resource->openDataFile(filename, MKTAG('D', 'I', 'F', 'F')); + g_lab->_music->updateMusic(); + if (!g_lab->_music->_doNotFilestopSoundEffect) + g_lab->_music->stopSoundEffect(); + if (!file) + return false; + + g_lab->_anim->_doBlack = false; + g_lab->_anim->readSound(waitTillFinished, file); + + return true; +} + /*---------------------------------------------------------------------------*/ /*------------ Does all the text rendering to the message boxes. ------------*/ /*---------------------------------------------------------------------------*/ |