diff options
author | Max Horn | 2005-04-06 17:31:35 +0000 |
---|---|---|
committer | Max Horn | 2005-04-06 17:31:35 +0000 |
commit | 3d5b5f2ad83a5d4b463e9e78f204b132e36f770c (patch) | |
tree | 4d494a39724db4906bcb4add6522f35e2143ee10 /scumm/wiz_he.cpp | |
parent | 26e0ec1d240c71f5fdc34b912ee8ddf0368ab6dc (diff) | |
download | scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.gz scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.bz2 scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.zip |
Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
Diffstat (limited to 'scumm/wiz_he.cpp')
-rw-r--r-- | scumm/wiz_he.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index a941cb5965..a12195b133 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -810,7 +810,7 @@ void ScummEngine_v72he::captureWizImage(int resNum, const Common::Rect& r, bool dataSize = (dataSize + 1) & ~1; int wizSize = headerSize + dataSize; // write header - uint8 *wizImg = createResource(rtImage, resNum, dataSize + headerSize); + uint8 *wizImg = res.createResource(rtImage, resNum, dataSize + headerSize); *(uint32 *)(wizImg + 0x00) = MKID('AWIZ'); *(uint32 *)(wizImg + 0x04) = TO_BE_32(wizSize); *(uint32 *)(wizImg + 0x08) = MKID('WIZH'); @@ -1374,7 +1374,7 @@ void ScummEngine_v90he::createWizEmptyImage(const WizParameters *params) { } res_size += 8 + img_w * img_h; - uint8 *res_data = createResource(rtImage, params->img.resNum, res_size); + uint8 *res_data = res.createResource(rtImage, params->img.resNum, res_size); if (!res_data) { VAR(119) = -1; } else { @@ -1478,7 +1478,7 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) { } else { uint32 size = f.readUint32BE(); f.seek(0, SEEK_SET); - byte *p = createResource(rtImage, params->img.resNum, size); + byte *p = res.createResource(rtImage, params->img.resNum, size); if (f.read(p, size) != size) { res.nukeResource(rtImage, params->img.resNum); warning("i/o error when reading '%s'", params->filename); |