aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/locations.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2018-01-31 18:37:24 +0100
committerEugene Sandulenko2018-01-31 18:37:24 +0100
commitcb5436dd16653b01fa5834f573b0aa6954744a30 (patch)
treefce3766d7badd2191a91a6b27c15b5cda7499540 /engines/tucker/locations.cpp
parent7485fc3f754a0faabf6fe99d0205cdbbabd0d526 (diff)
downloadscummvm-rg350-cb5436dd16653b01fa5834f573b0aa6954744a30.tar.gz
scummvm-rg350-cb5436dd16653b01fa5834f573b0aa6954744a30.tar.bz2
scummvm-rg350-cb5436dd16653b01fa5834f573b0aa6954744a30.zip
TUCKER: Clarify comment in room palette handling code
Diffstat (limited to 'engines/tucker/locations.cpp')
-rw-r--r--engines/tucker/locations.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp
index e337279694..1a727900be 100644
--- a/engines/tucker/locations.cpp
+++ b/engines/tucker/locations.cpp
@@ -1791,8 +1791,9 @@ void TuckerEngine::execData3PreUpdate_locationNum29() {
const int d = _updateLocationFadePaletteCounter / 2;
uint8 scrollPal[5 * 3];
for (int i = 0; i < 5; ++i) {
- // TODO: Why is this needed? 6-bit colors?
// Bug Trac#6378. Shift the palette two bits to the left.
+ // The original was writing to 0x3C8-0x3c9 VGA registers which are
+ // 6-bit
scrollPal[i * 3 + 0] = r[i + d] << 2;
scrollPal[i * 3 + 1] = g[i + d] << 2;
scrollPal[i * 3 + 2] = b[i + d] << 2;