diff options
author | Martin Kiewitz | 2010-07-13 15:49:13 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-13 15:49:13 +0000 |
commit | 8171093614c16db6284a53ce00700aeb115419b4 (patch) | |
tree | 23cded0154f14e4885c6b4d07042de58af9dc704 /engines | |
parent | b97ef271c7f929fea02a1bd05950a61a9c313198 (diff) | |
download | scummvm-rg350-8171093614c16db6284a53ce00700aeb115419b4.tar.gz scummvm-rg350-8171093614c16db6284a53ce00700aeb115419b4.tar.bz2 scummvm-rg350-8171093614c16db6284a53ce00700aeb115419b4.zip |
SCI: adding comment about palette formats
svn-id: r50847
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/palette.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |