aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/indeo3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/indeo3.cpp')
-rw-r--r--engines/gob/indeo3.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/indeo3.cpp b/engines/gob/indeo3.cpp
index a0ad509817..8f439626fe 100644
--- a/engines/gob/indeo3.cpp
+++ b/engines/gob/indeo3.cpp
@@ -137,6 +137,12 @@ inline int PaletteLUT::getIndex(byte c1, byte c2, byte c3) const {
return ((c1 >> _shift) << _depth2) | ((c2 >> _shift) << _depth1) | (c3 >> _shift);
}
+void PaletteLUT::getEntry(byte index, byte &c1, byte &c2, byte &c3) const {
+ c1 = _realPal[index * 3 + 0];
+ c2 = _realPal[index * 3 + 1];
+ c3 = _realPal[index * 3 + 2];
+}
+
byte PaletteLUT::findNearest(byte c1, byte c2, byte c3) {
return _lut[getIndex(c1, c2, c3)];
}