diff options
author | Filippos Karapetis | 2015-07-21 22:23:20 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | db969dc9388855f2c80ab9cc5fd6e870c5979395 (patch) | |
tree | be85a6f8ede724160c0f0677e9e05eeb5b5524f5 /engines | |
parent | e9f161b3aafb971f3682aa8d6a5647283d8239cf (diff) | |
download | scummvm-rg350-db969dc9388855f2c80ab9cc5fd6e870c5979395.tar.gz scummvm-rg350-db969dc9388855f2c80ab9cc5fd6e870c5979395.tar.bz2 scummvm-rg350-db969dc9388855f2c80ab9cc5fd6e870c5979395.zip |
LAB: Move more static variables to the top
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lab/readdiff.cpp | 62 |
1 files changed, 19 insertions, 43 deletions
diff --git a/engines/lab/readdiff.cpp b/engines/lab/readdiff.cpp index ebf3d0793f..d220b3edc8 100644 --- a/engines/lab/readdiff.cpp +++ b/engines/lab/readdiff.cpp @@ -37,38 +37,23 @@ namespace Lab { -extern BitMap *DispBitMap, *DrawBitMap; -extern uint32 VGABytesPerPage; - -extern byte **startoffile; - static bool PlayOnce = false, changedscreen; +static uint32 header, size, processed = 0L, WaitSec = 0L, WaitMicros = 0L, DelayMicros = 0L; +static uint16 CurBit = 0, framenumber = 0, samplespeed, numchunks = 1; +static byte *Buffer, temp[5]; +static bool FirstThru = true, donepal = false; +static byte *storagefordifffile, **difffile = &storagefordifffile; +static byte *start; +static uint32 diffwidth, diffheight; +static byte blackbuffer[256 * 3]; +static byte *mstart; -bool NoFlip = false, /* Don't flip the new picture to front */ - DoBlack = false, /* Black the screen before new picture */ +bool DoBlack = false, /* Black the screen before new picture */ nopalchange = false, /* Don't change the palette. */ IsBM = false, /* Just fill in the RawDIFFBM structure */ - hidemouse = false, /* Don't set the mouse colors */ stopsound = false, - soundplaying = false, - screenbuffer = false, - waitForEffect = false, /* Wait for each sound effect to finish - before coninuing. */ - mwaitForEffect = false; - -uint16 DataBytesPerRow; - -#define CONTINUOUS 0xFFFF - -DIFFHeader headerdata; - - - -/*------ Stuff for the animation task. -----*/ - -static byte *start; - -static uint32 diffwidth, diffheight; + waitForEffect = false; /* Wait for each sound effect to finish + before coninuing. */ static bool continuous, IsPlaying = false, @@ -77,11 +62,16 @@ static bool continuous, IsAnim = false, IsPal = false; -char diffcmap[256 * 3], lastcmap[256 * 3]; - +uint16 DataBytesPerRow; +DIFFHeader headerdata; +char diffcmap[256 * 3]; BitMap RawDiffBM; +extern BitMap *DispBitMap, *DrawBitMap; +extern uint32 VGABytesPerPage; +extern byte **startoffile; +#define CONTINUOUS 0xFFFF /*****************************************************************************/ @@ -101,8 +91,6 @@ void unDiff(byte *NewBuf, byte *OldBuf, byte *DiffData, uint16 bytesperrow, bool } -static byte blackbuffer[256 * 3]; - /*****************************************************************************/ /* Changes the front screen to black. */ /*****************************************************************************/ @@ -132,14 +120,6 @@ void blackAllScreen() { } - -/* For Play Diff */ -static uint32 header, size, processed = 0L, WaitSec = 0L, WaitMicros = 0L, DelayMicros = 0L; -static uint16 CurBit = 0, framenumber = 0, samplespeed, numchunks = 1; -static byte *Buffer, temp[5]; -static bool FirstThru = true, donepal = false; -static byte *storagefordifffile, * *difffile = &storagefordifffile; - void diffNextFrame() { if (header == 65535) /* Already done. */ return; @@ -474,10 +454,6 @@ bool readDiff(bool playonce) { return true; } - -static byte *mstart; - - void readSound(bool waitTillFinished) { uint32 header_ = 0, size_; uint16 samplespeed_; |