diff options
author | Denis Kasak | 2009-07-16 16:06:29 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-16 16:06:29 +0000 |
commit | e0317099899a2bb88e57bd1d8a1003c1cb180ee2 (patch) | |
tree | e8504679d79ee4352a3a7cb44fe3fce04c523a83 /engines/draci/mouse.cpp | |
parent | 3d36ad3e677a75f48018336b04d5137b33cbcfb9 (diff) | |
download | scummvm-rg350-e0317099899a2bb88e57bd1d8a1003c1cb180ee2.tar.gz scummvm-rg350-e0317099899a2bb88e57bd1d8a1003c1cb180ee2.tar.bz2 scummvm-rg350-e0317099899a2bb88e57bd1d8a1003c1cb180ee2.zip |
Added _iconsArchive to DraciEngine and modified the Mouse class to use it.
svn-id: r42535
Diffstat (limited to 'engines/draci/mouse.cpp')
-rw-r--r-- | engines/draci/mouse.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/draci/mouse.cpp b/engines/draci/mouse.cpp index 09216085a7..4a02f47444 100644 --- a/engines/draci/mouse.cpp +++ b/engines/draci/mouse.cpp @@ -98,21 +98,11 @@ void Mouse::setPosition(uint16 x, uint16 y) { } // FIXME: Handle hotspots properly -// TODO: Implement a resource manager void Mouse::setCursorType(CursorType cur) { _cursorType = cur; - Common::String path("HRA.DFW"); BAFile *f; - BArchive ar; - ar.openArchive(path); - - if(ar.isOpen()) { - f = ar.getFile(_cursorType); - } else { - debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened - %s", path.c_str()); - return; - } + f = _vm->_iconsArchive->getFile(_cursorType); Sprite sp(f->_data, f->_length, 0, 0, true); CursorMan.replaceCursorPalette(_vm->_screen->getPalette(), 0, kNumColours); |