aboutsummaryrefslogtreecommitdiff
path: root/graphics/wincursor.cpp
diff options
context:
space:
mode:
authorCameron Cawley2019-05-01 17:12:18 +0100
committerFilippos Karapetis2019-05-01 23:52:56 +0300
commit8c2b09d919671c99be96d42bc3aeecec9222b46a (patch)
tree23918b80332c136803fac2749a91fb3f761fe6d3 /graphics/wincursor.cpp
parent3309c574c031f9a92457b3ccedd3210db50a9706 (diff)
downloadscummvm-rg350-8c2b09d919671c99be96d42bc3aeecec9222b46a.tar.gz
scummvm-rg350-8c2b09d919671c99be96d42bc3aeecec9222b46a.tar.bz2
scummvm-rg350-8c2b09d919671c99be96d42bc3aeecec9222b46a.zip
COMMON: Replace NEResourceType and PEResourceType with a shared enum
Diffstat (limited to 'graphics/wincursor.cpp')
-rw-r--r--graphics/wincursor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/wincursor.cpp b/graphics/wincursor.cpp
index 897886cbd6..2e083e347d 100644
--- a/graphics/wincursor.cpp
+++ b/graphics/wincursor.cpp
@@ -243,7 +243,7 @@ WinCursorGroup::~WinCursorGroup() {
}
WinCursorGroup *WinCursorGroup::createCursorGroup(Common::NEResources &exe, const Common::WinResourceID &id) {
- Common::ScopedPtr<Common::SeekableReadStream> stream(exe.getResource(Common::kNEGroupCursor, id));
+ Common::ScopedPtr<Common::SeekableReadStream> stream(exe.getResource(Common::kWinGroupCursor, id));
if (!stream || stream->size() <= 6)
return 0;
@@ -276,7 +276,7 @@ WinCursorGroup *WinCursorGroup::createCursorGroup(Common::NEResources &exe, cons
stream->readUint32LE(); // data size
uint32 cursorId = stream->readUint32LE();
- Common::ScopedPtr<Common::SeekableReadStream> cursorStream(exe.getResource(Common::kNECursor, cursorId));
+ Common::ScopedPtr<Common::SeekableReadStream> cursorStream(exe.getResource(Common::kWinCursor, cursorId));
if (!cursorStream) {
delete group;
return 0;
@@ -299,7 +299,7 @@ WinCursorGroup *WinCursorGroup::createCursorGroup(Common::NEResources &exe, cons
}
WinCursorGroup *WinCursorGroup::createCursorGroup(Common::PEResources &exe, const Common::WinResourceID &id) {
- Common::ScopedPtr<Common::SeekableReadStream> stream(exe.getResource(Common::kPEGroupCursor, id));
+ Common::ScopedPtr<Common::SeekableReadStream> stream(exe.getResource(Common::kWinGroupCursor, id));
if (!stream || stream->size() <= 6)
return 0;
@@ -325,7 +325,7 @@ WinCursorGroup *WinCursorGroup::createCursorGroup(Common::PEResources &exe, cons
stream->readUint32LE(); // data size
uint32 cursorId = stream->readUint16LE();
- Common::ScopedPtr<Common::SeekableReadStream> cursorStream(exe.getResource(Common::kPECursor, cursorId));
+ Common::ScopedPtr<Common::SeekableReadStream> cursorStream(exe.getResource(Common::kWinCursor, cursorId));
if (!cursorStream) {
delete group;
return 0;