aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2009-01-03 09:57:24 +0000
committerTravis Howell2009-01-03 09:57:24 +0000
commit1ea42d597fec8af1a4cb156dfbdf9ea27ada4669 (patch)
treef85a5bb57dcf109753b69129545ec9bc58723726 /engines
parent9e2f9b338f4eb42734cbbddcb7a328002e49b678 (diff)
downloadscummvm-rg350-1ea42d597fec8af1a4cb156dfbdf9ea27ada4669.tar.gz
scummvm-rg350-1ea42d597fec8af1a4cb156dfbdf9ea27ada4669.tar.bz2
scummvm-rg350-1ea42d597fec8af1a4cb156dfbdf9ea27ada4669.zip
Fix palette glitches in Art Show of Blue's Treasure Hunt.
svn-id: r35691
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/wiz_he.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 55fc6cc900..bab2f37718 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1534,12 +1534,18 @@ void Wiz::drawWizPolygonTransform(int resNum, int state, Common::Point *wp, int
debug(3, "drawWizPolygonTransform(resNum %d, flags 0x%X, shadow %d dstResNum %d palette %d)", resNum, flags, shadow, dstResNum, palette);
int i;
- if (flags & 0x800000) {
- debug(0, "drawWizPolygonTransform() unhandled flag 0x800000");
+ if (_vm->_game.heversion >= 99) {
+ flags |= kWIFBlitToMemBuffer;
+
+ if (flags & 0x800000) {
+ debug(0, "drawWizPolygonTransform() unhandled flag 0x800000");
+ }
+ } else {
+ flags = kWIFBlitToMemBuffer;
}
const Common::Rect *r = NULL;
- uint8 *srcWizBuf = drawWizImage(resNum, state, 0, 0, 0, shadow, 0, r, kWIFBlitToMemBuffer, 0, palette);
+ uint8 *srcWizBuf = drawWizImage(resNum, state, 0, 0, 0, shadow, 0, r, flags, 0, palette);
if (srcWizBuf) {
uint8 *dst;
int32 dstw, dsth, dstpitch, wizW, wizH;