aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-05-03 11:40:11 +0000
committerTravis Howell2006-05-03 11:40:11 +0000
commit04531df9b49ae0860a6e94822ff87dbfce6500e1 (patch)
tree3ee131e83fe63e38702b5193f26fa4e581c5af70 /engines
parentfea36d0112ef887b26d9dcbfd8818b511150295a (diff)
downloadscummvm-rg350-04531df9b49ae0860a6e94822ff87dbfce6500e1.tar.gz
scummvm-rg350-04531df9b49ae0860a6e94822ff87dbfce6500e1.tar.bz2
scummvm-rg350-04531df9b49ae0860a6e94822ff87dbfce6500e1.zip
Fix subtitle colors during lion ride in Simon2
svn-id: r22303
Diffstat (limited to 'engines')
-rw-r--r--engines/simon/draw.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/simon/draw.cpp b/engines/simon/draw.cpp
index b34b09b18f..2eb6041e47 100644
--- a/engines/simon/draw.cpp
+++ b/engines/simon/draw.cpp
@@ -462,21 +462,20 @@ void SimonEngine::fastFadeIn() {
}
void SimonEngine::slowFadeIn() {
- uint8 paletteTmp[768];
uint8 *src, *dst;
int c, p;
_paletteColorCount &= 0x7fff;
_paletteFlag = false;
- memcpy(_videoBuf1, _palette, 1024); // Difference
+ memcpy(_videoBuf1, _palette, 768);
memset(_videoBuf1, 0, 768);
memcpy(_paletteBackup, _palette, 768);
- memcpy(paletteTmp, _palette, 768);
+ memcpy(_videoBuf1 + 768, _palette, 768);
- for (c = 255; c > 0; c -= 4) {
- src = paletteTmp;
+ for (c = 255; c >= 0; c -= 4) {
+ src = _videoBuf1 + 768;
dst = _videoBuf1;
for (p = _paletteColorCount; p !=0 ; p--) {