diff options
author | Paul Gilbert | 2015-03-19 19:49:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-19 19:49:42 -0400 |
commit | a02461fcb15da3b2e7e91d9cfb1bca559a1d277b (patch) | |
tree | 610100fe3bcb7b9eb98a6c91821d04fbd4dba923 /engines/sherlock/events.cpp | |
parent | 5a7ea9318d54bd725dd2493277dc0daf17f8abb4 (diff) | |
download | scummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.tar.gz scummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.tar.bz2 scummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.zip |
SHERLOCK: Refactorings, new Sprite and People classes
Diffstat (limited to 'engines/sherlock/events.cpp')
-rw-r--r-- | engines/sherlock/events.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp index 1a882eedea..ecdbdbe8d7 100644 --- a/engines/sherlock/events.cpp +++ b/engines/sherlock/events.cpp @@ -32,7 +32,7 @@ namespace Sherlock { EventsManager::EventsManager(SherlockEngine *vm) { _vm = vm; - _cursorSprites = nullptr; + _cursorImages = nullptr; _cursorIndex = -1; _frameCounter = 1; _priorFrameTime = 0; @@ -41,7 +41,7 @@ EventsManager::EventsManager(SherlockEngine *vm) { } EventsManager::~EventsManager() { - delete _cursorSprites; + delete _cursorImages; } /** @@ -49,9 +49,9 @@ EventsManager::~EventsManager() { */ void EventsManager::loadCursors(const Common::String &filename) { hideCursor(); - delete _cursorSprites; + delete _cursorImages; - _cursorSprites = new Sprite(filename); + _cursorImages = new ImageFile(filename); } /** @@ -61,7 +61,7 @@ void EventsManager::changeCursor(int cursorIndex) { _cursorIndex = cursorIndex; // Set the cursor data - Graphics::Surface &s = (*_cursorSprites)[cursorIndex]; + Graphics::Surface &s = (*_cursorImages)[cursorIndex]; CursorMan.replaceCursor(s.getPixels(), s.w, s.h, s.w / 2, s.h / 2, 0xff); showCursor(); |