diff -ur ScummVM-cvs20020804/scummvm/gfx.cpp ScummVM-cvs20020804+hack/scummvm/gfx.cpp
old
|
new
|
|
446 | 446 | } |
447 | 447 | } |
448 | 448 | |
| 449 | if (_features & GF_SMALL_HEADER) |
| 450 | memcpy(_backupPalette, _currentPalette, sizeof(_backupPalette)); |
| 451 | |
449 | 452 | setDirtyColors(0, numcolor - 1); |
450 | 453 | } |
451 | 454 | |
diff -ur ScummVM-cvs20020804/scummvm/script_v1.cpp ScummVM-cvs20020804+hack/scummvm/script_v1.cpp
old
|
new
|
|
1922 | 1922 | b = getVarOrDirectWord(0x40); |
1923 | 1923 | } |
1924 | 1924 | checkRange(256, 0, a, "o5_roomOps: 2: Illegal room color slot (%d)"); |
1925 | | _shadowPalette[a] = b; |
1926 | | // _fullRedraw = 1; |
| 1925 | c = _backupPalette[a * 3 + 0]; |
| 1926 | d = _backupPalette[a * 3 + 1]; |
| 1927 | e = _backupPalette[a * 3 + 2]; |
| 1928 | setPalColor(b, c, d, e); /* index, r, g, b */ |
1927 | 1929 | } else { |
1928 | 1930 | a = getVarOrDirectWord(0x80); |
1929 | 1931 | b = getVarOrDirectWord(0x40); |
diff -ur ScummVM-cvs20020804/scummvm/scumm.h ScummVM-cvs20020804+hack/scummvm/scumm.h
old
|
new
|
|
955 | 955 | byte *_shadowPalette; |
956 | 956 | int _shadowPaletteSize; |
957 | 957 | byte _currentPalette[0x300]; |
| 958 | byte _backupPalette[0x300]; |
958 | 959 | |
959 | 960 | byte _proc_special_palette[256]; |
960 | 961 | int _palDirtyMin, _palDirtyMax; |