diff options
author | Johannes Schickel | 2008-09-10 20:47:58 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-09-10 20:47:58 +0000 |
commit | 25d79f8918810b66748bfc4cebb85a66ea758f15 (patch) | |
tree | ebede0888f7b5a3cdc23b7810cbe14dac2056fe3 /engines | |
parent | 3b83564ad593d0b57464fcef19b573698d918410 (diff) | |
download | scummvm-rg350-25d79f8918810b66748bfc4cebb85a66ea758f15.tar.gz scummvm-rg350-25d79f8918810b66748bfc4cebb85a66ea758f15.tar.bz2 scummvm-rg350-25d79f8918810b66748bfc4cebb85a66ea758f15.zip |
Cleanup.
svn-id: r34484
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/screen.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 68faaf6177..32fef01083 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -2736,21 +2736,7 @@ bool Screen::loadPalette(const char *filename, uint8 *palData) { if (palData && fileSize) { debugC(9, kDebugLevelScreen,"Loading a palette of size %u from '%s'", fileSize, filename); - if (_vm->gameFlags().platform == Common::kPlatformAmiga) { - assert(fileSize % 2 == 0); - assert(fileSize / 2 <= 256); - fileSize >>= 1; - const uint16 *src = (const uint16 *)srcData; - for (uint i = 0; i < fileSize; ++i) { - uint16 col = READ_BE_UINT16(src); ++src; - palData[2] = (col & 0xF) << 2; col >>= 4; - palData[1] = (col & 0xF) << 2; col >>= 4; - palData[0] = (col & 0xF) << 2; col >>= 4; - palData += 3; - } - } else { - memcpy(palData, srcData, fileSize); - } + loadPalette(srcData, palData, fileSize); } delete[] srcData; return true; |