diff options
author | Max Horn | 2002-12-31 03:32:06 +0000 |
---|---|---|
committer | Max Horn | 2002-12-31 03:32:06 +0000 |
commit | bac024525022037252fc37c2f1236fa63097627b (patch) | |
tree | cc47d5a68dd05a92e328210511240a672ed697bb /scumm/verbs.cpp | |
parent | 5d4f06cf1f5b75b0ee719b41cf69443f2fd1b9a8 (diff) | |
download | scummvm-rg350-bac024525022037252fc37c2f1236fa63097627b.tar.gz scummvm-rg350-bac024525022037252fc37c2f1236fa63097627b.tar.bz2 scummvm-rg350-bac024525022037252fc37c2f1236fa63097627b.zip |
added V8 support to drawVerbBitmap - not even sure if that is used in COMI, though
svn-id: r6286
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r-- | scumm/verbs.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index ef65db1030..d9ad690d1d 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -242,7 +242,18 @@ void Scumm::drawVerbBitmap(int verb, int x, int y) imgh = READ_LE_UINT16(&imhd->old.height) >> 3; } - imptr = findResource(MKID('IM01'), obim); + if (_features & GF_AFTER_V8) { + warning("drawVerbBitmap(%d, %d, %d)", verb, x, y); + imptr = findResource(MKID('IMAG'), obim); + assert(imptr); + imptr = findResource(MKID('WRAP'), imptr); + assert(imptr); + imptr = findResource(MKID('OFFS'), imptr); + assert(imptr); + // Get the address of the second SMAP (corresponds to IM01) + imptr += READ_LE_UINT32(imptr + 12); + } else + imptr = findResource(MKID('IM01'), obim); if (!imptr) error("No image for verb %d", verb); } |