diff options
author | Florian Kagerer | 2009-11-11 23:05:19 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-11-11 23:05:19 +0000 |
commit | c0fc64ecbf8964a6047faf2c86240ca5e8608f4f (patch) | |
tree | 78243a883a1fef5306629c377da18f87c84d7a34 /engines/kyra/screen_lol.cpp | |
parent | e0ae43ded79f1b968e6939b863f5e1bcd7144732 (diff) | |
download | scummvm-rg350-c0fc64ecbf8964a6047faf2c86240ca5e8608f4f.tar.gz scummvm-rg350-c0fc64ecbf8964a6047faf2c86240ca5e8608f4f.tar.bz2 scummvm-rg350-c0fc64ecbf8964a6047faf2c86240ca5e8608f4f.zip |
LOL: - fixed transparency tables in PC-98 16 color version
- renamed some variables
svn-id: r45847
Diffstat (limited to 'engines/kyra/screen_lol.cpp')
-rw-r--r-- | engines/kyra/screen_lol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/screen_lol.cpp b/engines/kyra/screen_lol.cpp index 284158e586..86e113ded9 100644 --- a/engines/kyra/screen_lol.cpp +++ b/engines/kyra/screen_lol.cpp @@ -245,7 +245,7 @@ uint8 *Screen_LoL::generateLevelOverlay(const Palette &srcPal, uint8 *ovl, int o return ovl; } -void Screen_LoL::generateTruelightTables(const uint8 *ovl, int a, const Palette &fxPal, const Palette &screenPal, uint8 *outTable1, uint8 *outTable2, int b) { +void Screen_LoL::createTransparencyTablesIntern(const uint8 *ovl, int a, const Palette &fxPal, const Palette &screenPal, uint8 *outTable1, uint8 *outTable2, int b) { memset(outTable1, 0xff, 256); for (int i = 0; i < a; i++) @@ -257,8 +257,8 @@ void Screen_LoL::generateTruelightTables(const uint8 *ovl, int a, const Palette uint16 fcol[3]; uint16 scol[3]; - int t1 = (b << 6) / 100; - int t2 = 64 - t1; + uint16 t1 = (b << 6) / 100; + uint16 t2 = 64 - t1; uint8 c = ovl[i]; fcol[0] = fxPal[3 * c]; @@ -277,7 +277,7 @@ void Screen_LoL::generateTruelightTables(const uint8 *ovl, int a, const Palette tcol[2] = CLIP(((fcol[2] * t2) >> 6) + ((scol[2] * t1) >> 6), 0, 63); o[ii] = findLeastDifferentColor(tcol, screenPal, 0, 255); - } + } } else { memset(&outTable2[i << 8], 0, 256); |