aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-28 04:44:10 +0000
committerTravis Howell2006-10-28 04:44:10 +0000
commit31a44154f091d054ae7a44080bb4911c10505b6c (patch)
tree30ddf17db415a85dbbb9a748f739aff2a5cb9cf4 /engines
parent4b46821ffbd7e617abc88a3f3f566a31cb59d340 (diff)
downloadscummvm-rg350-31a44154f091d054ae7a44080bb4911c10505b6c.tar.gz
scummvm-rg350-31a44154f091d054ae7a44080bb4911c10505b6c.tar.bz2
scummvm-rg350-31a44154f091d054ae7a44080bb4911c10505b6c.zip
Add code for vc37_pokePalette
svn-id: r24548
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/vga.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp
index 2350d4f3e6..e65cbb704e 100644
--- a/engines/agos/vga.cpp
+++ b/engines/agos/vga.cpp
@@ -1142,10 +1142,17 @@ void AGOSEngine::vc36_setWindowImage() {
}
void AGOSEngine::vc37_pokePalette() {
- // TODO
- uint a = vcReadNextWord();
- uint b = vcReadNextWord();
- debug(0, "vc37_pokePalette: stub (%d, %d)", a, b);
+ uint16 offs = vcReadNextWord();
+ uint16 color = vcReadNextWord();
+
+ byte *palptr = _displayPalette + offs * 4;
+ palptr[0] = ((color & 0xf00) >> 8) * 32;
+ palptr[1] = ((color & 0x0f0) >> 4) * 32;
+ palptr[2] = ((color & 0x00f) >> 0) * 32;
+ palptr[3] = 0;
+
+ _paletteFlag = 2;
+ _vgaSpriteChanged++;
}
void AGOSEngine::vc38_ifVarNotZero() {