diff options
author | Filippos Karapetis | 2016-03-11 05:10:32 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-03-11 05:10:32 +0200 |
commit | 3a770fa0d8f3fc86a5967f321f17991e2879e3f5 (patch) | |
tree | 5640ada55bf6eace5c5b4f3964a0293db8e4966b /engines/sci/graphics/palette32.cpp | |
parent | 22097018bb348b4c29def9f1d2de4d802661a6b0 (diff) | |
download | scummvm-rg350-3a770fa0d8f3fc86a5967f321f17991e2879e3f5.tar.gz scummvm-rg350-3a770fa0d8f3fc86a5967f321f17991e2879e3f5.tar.bz2 scummvm-rg350-3a770fa0d8f3fc86a5967f321f17991e2879e3f5.zip |
SCI32: Initial implementation of kRemapColors
applyRemap() is still not finished, so nothing is actually visible yet
Diffstat (limited to 'engines/sci/graphics/palette32.cpp')
-rw-r--r-- | engines/sci/graphics/palette32.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp index 82e8d779f1..6844011675 100644 --- a/engines/sci/graphics/palette32.cpp +++ b/engines/sci/graphics/palette32.cpp @@ -28,6 +28,7 @@ #include "sci/event.h" #include "sci/resource.h" #include "sci/graphics/palette32.h" +#include "sci/graphics/remap.h" #include "sci/graphics/screen.h" namespace Sci { @@ -223,9 +224,7 @@ int16 GfxPalette32::matchColor(const byte r, const byte g, const byte b, const i bool GfxPalette32::updateForFrame() { applyAll(); _versionUpdated = false; - // TODO: Implement remapping - // return g_sci->_gfxFrameout->remapAllTables(_nextPalette != _sysPalette); - return false; + return g_sci->_gfxRemap32->remapAllTables(_nextPalette != _sysPalette); } void GfxPalette32::updateFFrame() { @@ -233,8 +232,7 @@ void GfxPalette32::updateFFrame() { _nextPalette.colors[i] = _sourcePalette.colors[i]; } _versionUpdated = false; - // TODO: Implement remapping - // g_sci->_gfxFrameout->remapAllTables(_nextPalette != _sysPalette); + g_sci->_gfxRemap32->remapAllTables(_nextPalette != _sysPalette); } void GfxPalette32::updateHardware() { |