aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/pal.cpp')
-rw-r--r--engines/cine/pal.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index e02fb3ae9a..8813de92b2 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -222,10 +222,6 @@ Palette &Palette::fillWithBlack() {
return *this;
}
-EndianType Palette::endianType() const {
- return (_bigEndian ? CINE_BIG_ENDIAN : CINE_LITTLE_ENDIAN);
-}
-
Graphics::PixelFormat Palette::colorFormat() const {
return _format;
}
@@ -248,10 +244,6 @@ void Palette::setColorFormat(const Graphics::PixelFormat format) {
_bMax = (1 << _bBits) - 1;
}
-void Palette::setEndianType(const EndianType endian) {
- _bigEndian = isBigEndian(endian);
-}
-
// a.k.a. transformPaletteRange
Palette &Palette::saturatedAddColor(Palette& output, byte firstIndex, byte lastIndex, signed r, signed g, signed b) {
assert(firstIndex < colorCount() && lastIndex < colorCount());
@@ -292,7 +284,6 @@ Palette &Palette::load(const byte *buf, const uint size, const Graphics::PixelFo
assert(format.gShift / 8 == (format.gShift + MAX<int>(0, 8 - format.gLoss - 1)) / 8); // G must be inside one byte
assert(format.bShift / 8 == (format.bShift + MAX<int>(0, 8 - format.bLoss - 1)) / 8); // B must be inside one byte
- setEndianType(endian);
setColorFormat(format);
_colors.clear();