diff options
author | Paul Gilbert | 2016-11-08 20:11:11 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-08 20:11:11 -0500 |
commit | 806e5827f1599d650836546b7abadc7d61d0bc28 (patch) | |
tree | b2b59fe8059d96a691bd7b8dc24b893c6e27e88f /engines/titanic/pet_control | |
parent | 3291a9761cf43e67fe0d085ac63fd89b46367765 (diff) | |
download | scummvm-rg350-806e5827f1599d650836546b7abadc7d61d0bc28.tar.gz scummvm-rg350-806e5827f1599d650836546b7abadc7d61d0bc28.tar.bz2 scummvm-rg350-806e5827f1599d650836546b7abadc7d61d0bc28.zip |
TITANIC: Fix spurious drag starts happening after view changes
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_rooms_glyphs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp index 6855e5b98e..0f7a5828b3 100644 --- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp +++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp @@ -103,7 +103,7 @@ void CPetRoomsGlyph::drawAt(CScreenManager *screenManager, const Point &pt, bool void CPetRoomsGlyph::selectGlyph(const Point &topLeft, const Point &pt) { if (!isAssigned()) { - bool isShiftPressed = g_vm->_window->getSpecialButtons() & MK_SHIFT; + bool isShiftPressed = g_vm->_events->getSpecialButtons() & MK_SHIFT; if (isShiftPressed) { int selection = getSelection(topLeft, pt); @@ -116,7 +116,7 @@ void CPetRoomsGlyph::selectGlyph(const Point &topLeft, const Point &pt) { } bool CPetRoomsGlyph::dragGlyph(const Point &topLeft, CMouseDragStartMsg *msg) { - bool isShiftPressed = g_vm->_window->getSpecialButtons() & MK_SHIFT; + bool isShiftPressed = g_vm->_events->getSpecialButtons() & MK_SHIFT; CPetControl *petControl = getPetControl(); if (!isShiftPressed && petControl) { |