diff options
author | johndoe123 | 2016-03-26 21:36:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 2bd13865285058d72e13150ab64462dbbe23163c (patch) | |
tree | d22f04f4985d51ec8554004b9f9d789db80ebadb /engines/illusions/sequenceopcodes.cpp | |
parent | 9447d42fd71ce092d70fad416caf2babacf00dcd (diff) | |
download | scummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.tar.gz scummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.tar.bz2 scummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.zip |
ILLUSIONS: Move palette code from Screen to new ScreenPalette class
Diffstat (limited to 'engines/illusions/sequenceopcodes.cpp')
-rw-r--r-- | engines/illusions/sequenceopcodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/sequenceopcodes.cpp b/engines/illusions/sequenceopcodes.cpp index 5ce25ca1fb..81f881be46 100644 --- a/engines/illusions/sequenceopcodes.cpp +++ b/engines/illusions/sequenceopcodes.cpp @@ -361,13 +361,13 @@ void SequenceOpcodes::opSetPalette(Control *control, OpCall &opCall) { ARG_BYTE(fromIndex); BackgroundResource *bgRes = _vm->_backgroundInstances->getActiveBgResource(); Palette *palette = bgRes->getPalette(paletteIndex - 1); - _vm->_screen->setPalette(palette->_palette, fromIndex, palette->_count); + _vm->_screenPalette->setPalette(palette->_palette, fromIndex, palette->_count); } void SequenceOpcodes::opShiftPalette(Control *control, OpCall &opCall) { ARG_INT16(fromIndex); ARG_INT16(toIndex); - _vm->_screen->shiftPalette(fromIndex, toIndex); + _vm->_screenPalette->shiftPalette(fromIndex, toIndex); } void SequenceOpcodes::opPlaySound(Control *control, OpCall &opCall) { |