aboutsummaryrefslogtreecommitdiff
path: root/scumm/wiz_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-04 11:43:25 +0000
committerTravis Howell2005-04-04 11:43:25 +0000
commitf230fe65e8b035d3bcbf3a45317cf56ac673fdfe (patch)
tree6de886f11751b849dfec6de3b695cd5410efba1d /scumm/wiz_he.cpp
parentd08068dff1ea02314d791c1248d72091d4d5d9e9 (diff)
downloadscummvm-rg350-f230fe65e8b035d3bcbf3a45317cf56ac673fdfe.tar.gz
scummvm-rg350-f230fe65e8b035d3bcbf3a45317cf56ac673fdfe.tar.bz2
scummvm-rg350-f230fe65e8b035d3bcbf3a45317cf56ac673fdfe.zip
Add 8 sound channel support for HE games
-Allows sound looping to work Added support for WAVE format musuc used in later HE100 games. svn-id: r17372
Diffstat (limited to 'scumm/wiz_he.cpp')
-rw-r--r--scumm/wiz_he.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index bb9a803f0e..8e430f9cd0 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -916,12 +916,13 @@ uint8 *ScummEngine_v72he::drawWizImage(int resNum, int state, int x1, int y1, in
cw = width;
ch = height;
} else {
+ VirtScreen *pvs = &virtscr[kMainVirtScreen];
if (dstPtr) {
cw = READ_LE_UINT32(dstPtr + 0x4);
ch = READ_LE_UINT32(dstPtr + 0x8);
+ assert(cw <= pvs->w && ch <= pvs->h);
dst = dstPtr;
} else {
- VirtScreen *pvs = &virtscr[kMainVirtScreen];
if (flags & kWIFMarkBufferDirty) {
dst = pvs->getPixels(0, pvs->topline);
} else {