diff options
author | Paul Gilbert | 2010-01-30 09:21:07 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-01-30 09:21:07 +0000 |
commit | 3285a4ba4d585739577176baddd8f48478d2f229 (patch) | |
tree | 86f8e10aab8e619116721398918bca88abf4ce5d /engines/m4/graphics.cpp | |
parent | 28aee9c5f3462cd72db0b91b7f578649869738d5 (diff) | |
download | scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.gz scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.bz2 scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.zip |
Beginnings of a separation of the MADS and M4 engines into separate classes. This will be cleaner then having checks everywhere for whether the game mode is MADS or M4.
svn-id: r47705
Diffstat (limited to 'engines/m4/graphics.cpp')
-rw-r--r-- | engines/m4/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp index b8e0761031..da288cc3bc 100644 --- a/engines/m4/graphics.cpp +++ b/engines/m4/graphics.cpp @@ -718,7 +718,7 @@ static void makeTranslationList(RGB8 *palData, byte transList[NUM_GREENS]) { // Support function for fading in or out -static void fadeRange(M4Engine *vm, RGB8 *srcPal, RGB8 *destPal, int startIndex, int endIndex, +static void fadeRange(MadsM4Engine *vm, RGB8 *srcPal, RGB8 *destPal, int startIndex, int endIndex, int numSteps, uint delayAmount) { RGB8 tempPal[256]; @@ -746,7 +746,7 @@ static void fadeRange(M4Engine *vm, RGB8 *srcPal, RGB8 *destPal, int startIndex vm->_palette->setPalette(&destPal[startIndex], startIndex, endIndex - startIndex + 1); } -Palette::Palette(M4Engine *vm) : _vm(vm) { +Palette::Palette(MadsM4Engine *vm) : _vm(vm) { reset(); _fading_in_progress = false; Common::set_to(&_usageCount[0], &_usageCount[256], 0); |