aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-07-24 10:08:08 +0200
committerTorbjörn Andersson2015-07-24 10:08:08 +0200
commitc01aa956b9cf61b8c610e0e52dc9fa42188930ae (patch)
tree42db955da588df8985410735611dee50a7b48d30 /engines
parent15d64957559a18e2a76f54f289e231b8b787aad9 (diff)
downloadscummvm-rg350-c01aa956b9cf61b8c610e0e52dc9fa42188930ae.tar.gz
scummvm-rg350-c01aa956b9cf61b8c610e0e52dc9fa42188930ae.tar.bz2
scummvm-rg350-c01aa956b9cf61b8c610e0e52dc9fa42188930ae.zip
ACCESS: Use VGA_COLOR_TRANS() in setIconPalette()
This fixes the palette for Martian Memorandum's command icons and mouse cursor.
Diffstat (limited to 'engines')
-rw-r--r--engines/access/screen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/access/screen.cpp b/engines/access/screen.cpp
index 9392decead..978ba84b9a 100644
--- a/engines/access/screen.cpp
+++ b/engines/access/screen.cpp
@@ -119,7 +119,9 @@ void Screen::setManPalette() {
void Screen::setIconPalette() {
if (_vm->getGameID() == GType_MartianMemorandum) {
- Common::copy(Martian::ICON_DATA, Martian::ICON_DATA + 0x1B, _rawPalette + 741);
+ for (int i = 0; i < 0x1B; i++) {
+ _rawPalette[741 + i] = VGA_COLOR_TRANS(Martian::ICON_DATA[i]);
+ }
}
}