aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-11-04 01:12:20 +0000
committerTravis Howell2005-11-04 01:12:20 +0000
commit25336c36069ec1da5e00e8c24dd0dcbf52f49548 (patch)
tree266219b7ab5973bd3f8187ed151ac21c148738eb /scumm
parent3903042d2f849739e2cbb78f2b19d79a77466156 (diff)
downloadscummvm-rg350-25336c36069ec1da5e00e8c24dd0dcbf52f49548.tar.gz
scummvm-rg350-25336c36069ec1da5e00e8c24dd0dcbf52f49548.tar.bz2
scummvm-rg350-25336c36069ec1da5e00e8c24dd0dcbf52f49548.zip
Values should only be set in HE99+.
Remove fixme, that difference in normal for ScummVM. svn-id: r19421
Diffstat (limited to 'scumm')
-rw-r--r--scumm/wiz_he.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index 024acc782d..b6cd1892cc 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -1003,7 +1003,7 @@ uint8 *Wiz::drawWizImage(int resNum, int state, int x1, int y1, int zorder, int
int32 cw, ch;
if (flags & kWIFBlitToMemBuffer) {
dst = (uint8 *)malloc(width * height);
- int color = 255; // FIXME: should be (VAR_WIZ_TCOLOR != 0xFF) ? VAR(VAR_WIZ_TCOLOR) : 5;
+ int color = 255;
memset(dst, color, width * height);
cw = width;
ch = height;
@@ -1925,7 +1925,11 @@ int Wiz::isWizPixelNonTransparent(int resNum, int state, int x, int y, int flags
}
switch (c) {
case 0:
- ret = getRawWizPixelColor(wizd, x, y, w, h, _vm->VAR(_vm->VAR_WIZ_TCOLOR)) != _vm->VAR(_vm->VAR_WIZ_TCOLOR) ? 1 : 0;
+ if (_vm->_heversion >= 99) {
+ ret = getRawWizPixelColor(wizd, x, y, w, h, _vm->VAR(_vm->VAR_WIZ_TCOLOR)) != _vm->VAR(_vm->VAR_WIZ_TCOLOR) ? 1 : 0;
+ } else {
+ ret = 0;
+ }
break;
case 1:
ret = isWizPixelNonTransparent(wizd, x, y, w, h);
@@ -1955,7 +1959,11 @@ uint8 Wiz::getWizPixelColor(int resNum, int state, int x, int y, int flags) {
assert(wizd);
switch (c) {
case 0:
- color = getRawWizPixelColor(wizd, x, y, w, h, _vm->VAR(_vm->VAR_WIZ_TCOLOR));
+ if (_vm->_heversion >= 99) {
+ color = getRawWizPixelColor(wizd, x, y, w, h, _vm->VAR(_vm->VAR_WIZ_TCOLOR));
+ } else {
+ color = _vm->VAR(_vm->VAR_WIZ_TCOLOR);
+ }
break;
case 1:
color = getWizPixelColor(wizd, x, y, w, h, _vm->VAR(_vm->VAR_WIZ_TCOLOR));