aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJonathan Gray2003-04-10 12:20:36 +0000
committerJonathan Gray2003-04-10 12:20:36 +0000
commite169b15efac96849d77ad69081cace179318be6f (patch)
tree0dc4299c18daba4db97413f060c3f580733dfb6e /scumm
parent4572cc565a566ea408bfaaaf6089ad8314433acc (diff)
downloadscummvm-rg350-e169b15efac96849d77ad69081cace179318be6f.tar.gz
scummvm-rg350-e169b15efac96849d77ad69081cace179318be6f.tar.bz2
scummvm-rg350-e169b15efac96849d77ad69081cace179318be6f.zip
use shadowPalette for ega stuff
svn-id: r6957
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index dfd84cc8fa..8e8bb92910 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1055,9 +1055,9 @@ void Gdi::decodeStripEGA(byte *dst, byte *src, int height) {
for(int z = 0; z < run; z++) {
if(z & 1) {
- *(dst + y * _vm->_realWidth + x) = color & 0xf;
+ *(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color & 0xf];
} else {
- *(dst + y * _vm->_realWidth + x) = color >> 4;
+ *(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color >> 4];
}
y++;
@@ -1087,7 +1087,7 @@ void Gdi::decodeStripEGA(byte *dst, byte *src, int height) {
}
for(int z = 0; z < run; z++) {
- *(dst + y * _vm->_realWidth + x) = color & 0xf;
+ *(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color & 0xf];
y++;
if(y >= height){