diff options
author | Johannes Schickel | 2009-06-25 15:22:08 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-25 15:22:08 +0000 |
commit | 0ef8d1ffed66d6677b0dff850e4d35d745e93aee (patch) | |
tree | f040e0c1f12f356f3459d8a246737754886bdbaf /engines/kyra/staticres.cpp | |
parent | 8343bc6cc05dfbc8480306cfb60fe8cde593deb5 (diff) | |
download | scummvm-rg350-0ef8d1ffed66d6677b0dff850e4d35d745e93aee.tar.gz scummvm-rg350-0ef8d1ffed66d6677b0dff850e4d35d745e93aee.tar.bz2 scummvm-rg350-0ef8d1ffed66d6677b0dff850e4d35d745e93aee.zip |
Implement proper color index conversion for Lands of Lore PC98. (The intro and menu screen work fine now)
svn-id: r41867
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r-- | engines/kyra/staticres.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index 86680a7b76..e8597c8326 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -3159,6 +3159,42 @@ const ScreenDim Screen_LoL::_screenDimTable16C[] = { const int Screen_LoL::_screenDimTableCount = ARRAYSIZE(Screen_LoL::_screenDimTable256C); +// 256 -> 16 color conversion table +const uint8 Screen_LoL::_paletteConvTable[256] = { + 0x0, 0x1, 0x0, 0x3, 0x0, 0x5, 0x0, 0x7, + 0x0, 0x9, 0x0, 0xB, 0x0, 0xD, 0x0, 0xF, + 0x1, 0x1, 0x1, 0x3, 0x1, 0x5, 0x1, 0x7, + 0x1, 0x9, 0x1, 0xB, 0x1, 0xD, 0x1, 0xF, + 0x2, 0x1, 0x2, 0x3, 0x2, 0x5, 0x2, 0x7, + 0x2, 0x9, 0x2, 0xB, 0x2, 0xD, 0x2, 0xF, + 0x3, 0x1, 0x3, 0x3, 0x3, 0x5, 0x3, 0x7, + 0x3, 0x9, 0x3, 0xB, 0x3, 0xD, 0x3, 0xF, + 0x4, 0x1, 0x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