diff options
author | Travis Howell | 2006-04-15 22:37:48 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-15 22:37:48 +0000 |
commit | 5b388fc48e8293dd4d6bb30538c00c3051f87164 (patch) | |
tree | 39d8b29047adaf3f97a33da6bd8a075a93d0a4e0 /engines/simon/items.cpp | |
parent | 9d703f1fcfd51cc2e074e005ca9a3a3ca59bdb72 (diff) | |
download | scummvm-rg350-5b388fc48e8293dd4d6bb30538c00c3051f87164.tar.gz scummvm-rg350-5b388fc48e8293dd4d6bb30538c00c3051f87164.tar.bz2 scummvm-rg350-5b388fc48e8293dd4d6bb30538c00c3051f87164.zip |
Cleanup
svn-id: r21926
Diffstat (limited to 'engines/simon/items.cpp')
-rw-r--r-- | engines/simon/items.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp index 63350e061a..648d5b2fc2 100644 --- a/engines/simon/items.cpp +++ b/engines/simon/items.cpp @@ -1972,12 +1972,17 @@ void SimonEngine::o3_restartClock() { } void SimonEngine::o3_setColour() { - // 195: set palette colour? - uint blue = getVarOrByte(); - uint green = getVarOrByte(); - uint red = getVarOrByte(); - uint color = getVarOrByte(); - warning("STUB: script opcode 195 (%d, %d, %d, %d)", blue, green, red, color); + // 195: set palette colour + uint b = getVarOrByte(); + uint g = getVarOrByte(); + uint r = getVarOrByte(); + uint c = getVarOrByte() * 4; + + _palette[c + 0] = _paletteBackup[c + 0] = r; + _palette[c + 1] = _paletteBackup[c + 1] = g; + _palette[c + 2] = _paletteBackup[c + 2] = b; + + debug(0, "o3_setColour (%d, %d, %d, %d)", c, r, g, b); } void SimonEngine::o3_b3Set() { |