diff options
author | Gregory Montoir | 2004-11-27 17:50:23 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-11-27 17:50:23 +0000 |
commit | 5e351b0c312a921f9e2e8090462afec5cce7dbb1 (patch) | |
tree | a296ddd9e2256768d6d36d4d793a2befd78dd751 /scumm/script_v80he.cpp | |
parent | b92b8e8d6aa4108663e309cef08e5bbae609f734 (diff) | |
download | scummvm-rg350-5e351b0c312a921f9e2e8090462afec5cce7dbb1.tar.gz scummvm-rg350-5e351b0c312a921f9e2e8090462afec5cce7dbb1.tar.bz2 scummvm-rg350-5e351b0c312a921f9e2e8090462afec5cce7dbb1.zip |
moved all the HE wiz stuff to a separate module, with minor cleanups and simplifications
svn-id: r15921
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r-- | scumm/script_v80he.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index f4806a9c86..4070a27d98 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -543,52 +543,6 @@ void ScummEngine_v80he::o80_cursorCommand() { VAR(VAR_USERPUT) = _userPut; } -void ScummEngine_v80he::loadImgSpot(int resId, int state, int16 &x, int16 &y) { - const uint8 *dataPtr = getResourceAddress(rtImage, resId); - if (!dataPtr) { - warning("loadImgSpot: unknown Image %d", resId); - x = y = 0; - return; - } - - const uint8 *spotPtr = findWrappedBlock(MKID('SPOT'), dataPtr, state, 0); - - if (spotPtr) { - x = (int16)READ_LE_UINT32(spotPtr + 0); - y = (int16)READ_LE_UINT32(spotPtr + 4); - } else { - x = 0; - y = 0; - } -} - -void ScummEngine_v80he::loadWizCursor(int resId, int resType, bool state) { - int16 x, y; - loadImgSpot(resId, 0, x, y); - if (x < 0) { - x = 0; - } else if (x > 32) { - x = 32; - } - if (y < 0) { - y = 0; - } else if (y > 32) { - y = 32; - } - - WizImage wi; - wi.resNum = resId; - wi.x1 = wi.y1 = 0; - wi.state = 0; - wi.flags = 0x20; - uint8 *cursor = drawWizImage(rtImage, &wi); - int32 cw, ch; - getWizImageDim(resId, 0, cw, ch); - setCursorFromBuffer(cursor, cw, ch, cw); - setCursorHotspot(x, y); - free(cursor); -} - void ScummEngine_v80he::o80_setState() { int state = pop(); int obj = pop(); |