diff options
author | Strangerke | 2013-03-19 20:40:55 +0100 |
---|---|---|
committer | Strangerke | 2013-03-19 20:41:39 +0100 |
commit | db6d7e256bd1a1654002005fec3524ddcd300c75 (patch) | |
tree | e20128bc144b1b11899af51a73b1ba6d9b4f48e8 /engines/hopkins/events.cpp | |
parent | fa3136fbc4385f1f14a87f21dfa2e7bf82aac66d (diff) | |
download | scummvm-rg350-db6d7e256bd1a1654002005fec3524ddcd300c75.tar.gz scummvm-rg350-db6d7e256bd1a1654002005fec3524ddcd300c75.tar.bz2 scummvm-rg350-db6d7e256bd1a1654002005fec3524ddcd300c75.zip |
HOPKINS: Remove setParent() from EventsManager and Debugger
Diffstat (limited to 'engines/hopkins/events.cpp')
-rw-r--r-- | engines/hopkins/events.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp index b69d777f32..7732c4d386 100644 --- a/engines/hopkins/events.cpp +++ b/engines/hopkins/events.cpp @@ -33,7 +33,8 @@ namespace Hopkins { -EventsManager::EventsManager() { +EventsManager::EventsManager(HopkinsEngine *vm) { + _vm = vm; _mouseFl = false; _mouseLinuxFl = false; _mouseSizeX = _mouseSizeY = 0; @@ -62,10 +63,6 @@ EventsManager::~EventsManager() { _vm->_globals.freeMemory(_mouseCursor); } -void EventsManager::setParent(HopkinsEngine *vm) { - _vm = vm; -} - void EventsManager::initMouseData() { if (_vm->getPlatform() == Common::kPlatformLinux) _mouseLinuxFl = true; @@ -225,7 +222,7 @@ void EventsManager::checkForNextFrameCounter() { _vm->_graphicsManager.updateScreen(); // Signal the ScummVM debugger - _vm->_debugger.onFrame(); + _vm->_debugger->onFrame(); } } @@ -292,8 +289,8 @@ void EventsManager::handleKey(Common::Event &event) { // Check for debugger if ((event.kbd.keycode == Common::KEYCODE_d) && (event.kbd.flags & Common::KBD_CTRL)) { // Attach to the debugger - _vm->_debugger.attach(); - _vm->_debugger.onFrame(); + _vm->_debugger->attach(); + _vm->_debugger->onFrame(); } } @@ -406,11 +403,11 @@ void EventsManager::refreshScreenAndEvents() { if (yp + height > _vm->_graphicsManager._maxY) height = _vm->_graphicsManager._maxY - yp; if (width > 1 && height > 1) { - _vm->_eventsManager.updateCursor(); + updateCursor(); } } } else if (yp < _vm->_graphicsManager._maxY && xp < _vm->_graphicsManager._maxX && width > 1 && height > 1) { - _vm->_eventsManager.updateCursor(); + updateCursor(); _vm->_graphicsManager.addDirtyRect(xp, yp, right, bottom); } |