aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:24:19 +0000
committerEugene Sandulenko2010-06-15 10:24:19 +0000
commit508256a71e3a194043f1c5e65699613ba2b441db (patch)
tree95b31f1ef30c85522c7c7ad23b6261e303b76cee /engines/drascula
parent08c5d37da495538e5a4b634ec5a705ec305a97bc (diff)
downloadscummvm-rg350-508256a71e3a194043f1c5e65699613ba2b441db.tar.gz
scummvm-rg350-508256a71e3a194043f1c5e65699613ba2b441db.tar.bz2
scummvm-rg350-508256a71e3a194043f1c5e65699613ba2b441db.zip
Drascula: Fix bug #2011470.
Bug #2011470: "DRASCULA: slowdown when you hold mouse buttons" fixed by changing right mouse semantic. Now the items menu showed on button up instead mouse down like earlier. svn-id: r49721
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 0b2ddc6799..d8aeee3c97 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -507,6 +507,7 @@ bool DrasculaEngine::runCurrentChapter() {
#else
if (rightMouseButton == 1 && _menuScreen) {
#endif
+ rightMouseButton = 0;
delay(100);
if (currentChapter == 2) {
loadPic(menuBackground, cursorSurface);
@@ -535,6 +536,7 @@ bool DrasculaEngine::runCurrentChapter() {
if (rightMouseButton == 1 && !_menuScreen &&
!(currentChapter == 5 && pickedObject == 16)) {
#endif
+ rightMouseButton = 0;
delay(100);
characterMoved = 0;
if (trackProtagonist == 2)
@@ -760,10 +762,10 @@ void DrasculaEngine::updateEvents() {
leftMouseButton = 0;
break;
case Common::EVENT_RBUTTONDOWN:
- rightMouseButton = 1;
+ // We changed semantic and react only on button up event
break;
case Common::EVENT_RBUTTONUP:
- rightMouseButton = 0;
+ rightMouseButton = 1;
break;
case Common::EVENT_QUIT:
// TODO