diff options
| author | Filippos Karapetis | 2016-03-08 20:30:18 +0200 |
|---|---|---|
| committer | Filippos Karapetis | 2016-03-08 20:36:03 +0200 |
| commit | f450ca0ebff27d719784a3d6990bb797af0d89fa (patch) | |
| tree | af30aa88e0fd8424a542b7569aba502394bcdb8e /engines/sci/engine | |
| parent | 8f6bbe79ab3376836b7e0f5eb0a18ac4bfa4f2aa (diff) | |
| download | scummvm-rg350-f450ca0ebff27d719784a3d6990bb797af0d89fa.tar.gz scummvm-rg350-f450ca0ebff27d719784a3d6990bb797af0d89fa.tar.bz2 scummvm-rg350-f450ca0ebff27d719784a3d6990bb797af0d89fa.zip | |
SCI: Split color remapping functionality into a separate class
Currently, only the SCI16 remapping functionality is implemented
(used in the QFG4 demo)
Diffstat (limited to 'engines/sci/engine')
| -rw-r--r-- | engines/sci/engine/kgraphics.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index c0a3be4c11..93d0d91b65 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -45,6 +45,7 @@ #include "sci/graphics/paint16.h" #include "sci/graphics/picture.h" #include "sci/graphics/ports.h" +#include "sci/graphics/remap.h" #include "sci/graphics/screen.h" #include "sci/graphics/text16.h" #include "sci/graphics/view.h" @@ -1248,16 +1249,16 @@ reg_t kRemapColors(EngineState *s, int argc, reg_t *argv) { switch (operation) { case 0: { // remap by percent uint16 percent = argv[1].toUint16(); - g_sci->_gfxPalette16->resetRemapping(); - g_sci->_gfxPalette16->setRemappingPercent(254, percent); + g_sci->_gfxRemap16->resetRemapping(); + g_sci->_gfxRemap16->setRemappingPercent(254, percent); } break; case 1: { // remap by range uint16 from = argv[1].toUint16(); uint16 to = argv[2].toUint16(); uint16 base = argv[3].toUint16(); - g_sci->_gfxPalette16->resetRemapping(); - g_sci->_gfxPalette16->setRemappingRange(254, from, to, base); + g_sci->_gfxRemap16->resetRemapping(); + g_sci->_gfxRemap16->setRemappingRange(254, from, to, base); } break; case 2: // turn remapping off (unused) |
