From 8171093614c16db6284a53ce00700aeb115419b4 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 13 Jul 2010 15:49:13 +0000 Subject: SCI: adding comment about palette formats svn-id: r50847 --- engines/sci/graphics/palette.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/sci/graphics') diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp index 957199f8b9..c1654b4612 100644 --- a/engines/sci/graphics/palette.cpp +++ b/engines/sci/graphics/palette.cpp @@ -109,6 +109,8 @@ void GfxPalette::createFromData(byte *data, int bytesLeft, Palette *paletteOut) warning("GfxPalette::createFromData() - not enough bytes in resource, expected palette header"); return; } + // palette formats in here are not really version exclusive, we can not use sci-version to differentiate between them + // they were just called that way, because they started appearing in sci1.1 for example if ((data[0] == 0 && data[1] == 1) || (data[0] == 0 && data[1] == 0 && READ_LE_UINT16(data + 29) == 0)) { // SCI0/SCI1 palette palFormat = SCI_PAL_FORMAT_VARIABLE; // CONSTANT; -- cgit v1.2.3